<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
* This class generates form components for Membership Type
*
*/
-class CRM_Member_Form_MembershipType extends CRM_Member_Form {
+class CRM_Member_Form_MembershipType extends CRM_Member_Form_MembershipConfig {
/**
- * max number of contacts we will display for membership-organisation
+ * Max number of contacts we will display for membership-organisation
*/
CONST MAX_CONTACTS = 50;
}
/**
- * This function sets the default values for the form. MobileProvider that in edit/view mode
+ * Set default values for the form. MobileProvider that in edit/view mode
* the default values are retrieved from the database
*
* @access public
}
/**
- * Function to build the form
+ * Build the form object
*
* @return void
* @access public
}
/**
- * Function for validation
+ * Validation
*
* @param array $params (ref.) an assoc array of name/value pairs
*
}
if (($params['minimum_fee'] > 0 ) && !$params['financial_type_id'] ) {
- $errors['financial_type_id'] = ts('Please enter the financial type.');
+ $errors['financial_type_id'] = ts('Please enter the financial Type.');
}
if (empty($params['duration_interval']) and $params['duration_unit'] != 'lifetime') {
}
/**
- * Function to process the form
+ * Process the form submission
*
* @access public
*
}
/**
- * @param $previousID
- * @param $priceSetId
- * @param $membershipTypeId
+ * @param int $previousID
+ * @param int $priceSetId
+ * @param int $membershipTypeId
* @param $optionsIds
*/
public static function checkPreviousPriceField($previousID, $priceSetId, $membershipTypeId, &$optionsIds) {