*/
protected $_BAOName;
- /**
- * Explicitly declare the entity api name.
- */
- public function getDefaultEntity() {
- return 'MembershipType';
- }
-
public function preProcess() {
$this->_id = $this->get('id');
$this->_BAOName = $this->get('BAOName');
*
* @package CRM
* @copyright CiviCRM LLC (c) 2004-2018
- * $Id$
- *
*/
/**
* This class generates form components for Membership Type
- *
*/
class CRM_Member_Form_MembershipStatus extends CRM_Member_Form_MembershipConfig {
+
+ /**
+ * Explicitly declare the entity api name.
+ */
+ public function getDefaultEntity() {
+ return 'MembershipStatus';
+ }
+
+ /**
+ * Explicitly declare the form context.
+ */
+ public function getDefaultContext() {
+ return 'create';
+ }
+
/**
* Set default values for the form. MobileProvider that in edit/view mode
* the default values are retrieved from the database
*/
class CRM_Member_Form_MembershipType extends CRM_Member_Form_MembershipConfig {
+
+ /**
+ * Explicitly declare the entity api name.
+ */
+ public function getDefaultEntity() {
+ return 'MembershipType';
+ }
+
+ /**
+ * Explicitly declare the form context.
+ */
+ public function getDefaultContext() {
+ return 'create';
+ }
+
/**
* Max number of contacts we will display for membership-organisation
*/