*/
protected $_paymentProcessorType;
- /**
- * Fields for the entity to be assigned to the template.
- *
- * Fields may have keys
- * - name (required to show in tpl from the array)
- * - description (optional, will appear below the field)
- * Auto-added by setEntityFieldsMetadata unless specified here (use description => '' to hide)
- * - not-auto-addable - this class will not attempt to add the field using addField.
- * (this will be automatically set if the field does not have html in it's metadata
- * or is not a core field on the form's entity).
- * - help (option) add help to the field - e.g ['id' => 'id-source', 'file' => 'CRM/Contact/Form/Contact']]
- * - template - use a field specific template to render this field
- * - required
- * - is_freeze (field should be frozen).
- *
- * @var array
- */
- protected $entityFields = [];
-
/**
* Set entity fields to be assigned to the form.
*/
protected $_BAOName = 'CRM_Contact_BAO_RelationshipType';
- /**
- * Fields for the entity to be assigned to the template.
- *
- * Fields may have keys
- * - name (required to show in tpl from the array)
- * - description (optional, will appear below the field)
- * Auto-added by setEntityFieldsMetadata unless specified here (use description => '' to hide)
- * - not-auto-addable - this class will not attempt to add the field using addField.
- * (this will be automatically set if the field does not have html in it's metadata
- * or is not a core field on the form's entity).
- * - help (option) add help to the field - e.g ['id' => 'id-source', 'file' => 'CRM/Contact/Form/Contact']]
- * - template - use a field specific template to render this field
- * - required
- * - is_freeze (field should be frozen).
- *
- * @var array
- */
- protected $entityFields = [];
-
/**
* Set entity fields to be assigned to the form.
*/
*/
public $_paymentProcessor = [];
- /**
- * Fields for the entity to be assigned to the template.
- *
- * Fields may have keys
- * - name (required to show in tpl from the array)
- * - description (optional, will appear below the field)
- * - not-auto-addable - this class will not attempt to add the field using addField.
- * (this will be automatically set if the field does not have html in it's metadata
- * or is not a core field on the form's entity).
- * - help (option) add help to the field - e.g ['id' => 'id-source', 'file' => 'CRM/Contact/Form/Contact']]
- * - template - use a field specific template to render this field
- * @var array
- */
- protected $entityFields = [];
-
/**
* Details of the subscription (recurring contribution) to be altered.
*
*/
protected $deleteMessage;
+ /**
+ * Fields for the entity to be assigned to the template.
+ *
+ * Fields may have keys
+ * - name (required to show in tpl from the array)
+ * - description (optional, will appear below the field)
+ * - not-auto-addable - this class will not attempt to add the field using addField.
+ * (this will be automatically set if the field does not have html in it's metadata
+ * or is not a core field on the form's entity).
+ * - help (option) add help to the field - e.g ['id' => 'id-source', 'file' => 'CRM/Contact/Form/Contact']]
+ * - template - use a field specific template to render this field
+ * - required
+ * - is_freeze (field should be frozen).
+ *
+ * @var array
+ */
+ protected $entityFields = [];
+
+ /**
+ * Metadata from getfields API call for the current entity.
+ *
+ * @var array
+ */
+ protected $metadata = [];
+
/**
* Get entity fields for the entity to be added to the form.
*
protected $_BAOName = 'CRM_Financial_BAO_FinancialType';
- /**
- * Fields for the entity to be assigned to the template.
- *
- * @var array
- */
- protected $entityFields = [];
-
/**
* Set variables up before form is built.
*
*/
protected $_params = [];
- /**
- * Fields for the entity to be assigned to the template.
- *
- * Fields may have keys
- * - name (required to show in tpl from the array)
- * - description (optional, will appear below the field)
- * - not-auto-addable - this class will not attempt to add the field using addField.
- * (this will be automatically set if the field does not have html in it's metadata
- * or is not a core field on the form's entity).
- * - help (option) add help to the field - e.g ['id' => 'id-source', 'file' => 'CRM/Contact/Form/Contact']]
- * - template - use a field specific template to render this field
- * - required
- * - is_freeze (field should be frozen).
- *
- * @var array
- */
- protected $entityFields = [];
-
public function preProcess() {
// Check for edit permission.
if (!CRM_Core_Permission::checkActionPermission('CiviMember', $this->_action)) {
return 'create';
}
- /**
- * Fields for the entity to be assigned to the template.
- *
- * Fields may have keys
- * - name (required to show in tpl from the array)
- * - description (optional, will appear below the field)
- * - not-auto-addable - this class will not attempt to add the field using addField.
- * (this will be automatically set if the field does not have html in it's metadata
- * or is not a core field on the form's entity).
- * - help (optional) add help to the field - e.g ['id' => 'id-source', 'file' => 'CRM/Contact/Form/Contact']]
- * - template - use a field specific template to render this field
- * - required
- * @var array
- */
- protected $entityFields = [];
-
/**
* Set entity fields to be assigned to the form.
*/
use CRM_Core_Form_EntityFormTrait;
- /**
- * Fields for the entity to be assigned to the template.
- *
- * Fields may have keys
- * - name (required to show in tpl from the array)
- * - description (optional, will appear below the field)
- * - not-auto-addable - this class will not attempt to add the field using addField.
- * (this will be automatically set if the field does not have html in it's metadata
- * or is not a core field on the form's entity).
- * - help (option) add help to the field - e.g ['id' => 'id-source', 'file' => 'CRM/Contact/Form/Contact']]
- * - template - use a field specific template to render this field
- * - required
- * - is_freeze (field should be frozen).
- *
- * @var array
- */
- protected $entityFields = [];
-
/**
* Set entity fields to be assigned to the form.
*/
return 'PriceSet';
}
- /**
- * Fields for the entity to be assigned to the template.
- *
- * Fields may have keys
- * - name (required to show in tpl from the array)
- * - description (optional, will appear below the field)
- * - not-auto-addable - this class will not attempt to add the field using addField.
- * (this will be automatically set if the field does not have html in it's metadata
- * or is not a core field on the form's entity).
- * - help (option) add help to the field - e.g ['id' => 'id-source', 'file' => 'CRM/Contact/Form/Contact']]
- * - template - use a field specific template to render this field
- * @var array
- */
- protected $entityFields = [];
-
/**
* Set entity fields to be assigned to the form.
*/
use CRM_Core_Form_EntityFormTrait;
- /**
- * Fields for the entity to be assigned to the template.
- *
- * Fields may have keys
- * - name (required to show in tpl from the array)
- * - description (optional, will appear below the field)
- * - not-auto-addable - this class will not attempt to add the field using addField.
- * (this will be automatically set if the field does not have html in it's metadata
- * or is not a core field on the form's entity).
- * - help (option) add help to the field - e.g ['id' => 'id-source', 'file' => 'CRM/Contact/Form/Contact']]
- * - template - use a field specific template to render this field
- * - required
- * - is_freeze (field should be frozen).
- *
- * @var array
- */
- protected $entityFields = [];
-
/**
* @var bool
*/