/**
  * returns all the column names of this table
  *
  * @access public
  * @return array
  */
 static function &fields()
 {
     if (!self::$_fields) {
         self::$_fields = array('id' => array('name' => 'id', 'type' => CRM_Utils_Type::T_INT, 'required' => true), 'domain_id' => array('name' => 'domain_id', 'type' => CRM_Utils_Type::T_INT, 'required' => true, 'FKClassName' => 'CRM_Core_DAO_Domain'), 'membership_type' => array('name' => 'name', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Membership Type'), 'maxlength' => 128, 'size' => CRM_Utils_Type::HUGE, 'import' => true, 'where' => 'civicrm_membership_type.name', 'headerPattern' => '', 'dataPattern' => '', 'export' => true), 'description' => array('name' => 'description', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Description'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'member_of_contact_id' => array('name' => 'member_of_contact_id', 'type' => CRM_Utils_Type::T_INT, 'required' => true, 'FKClassName' => 'CRM_Contact_DAO_Contact'), 'contribution_type_id' => array('name' => 'contribution_type_id', 'type' => CRM_Utils_Type::T_INT, 'required' => true, 'FKClassName' => 'CRM_Contribute_DAO_ContributionType'), 'minimum_fee' => array('name' => 'minimum_fee', 'type' => CRM_Utils_Type::T_MONEY, 'title' => ts('Minimum Fee')), 'duration_unit' => array('name' => 'duration_unit', 'type' => CRM_Utils_Type::T_ENUM, 'title' => ts('Duration Unit'), 'enumValues' => 'day, month, year, lifetime'), 'duration_interval' => array('name' => 'duration_interval', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Duration Interval')), 'period_type' => array('name' => 'period_type', 'type' => CRM_Utils_Type::T_ENUM, 'title' => ts('Period Type'), 'enumValues' => 'rolling, fixed'), 'fixed_period_start_day' => array('name' => 'fixed_period_start_day', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Fixed Period Start Day')), 'fixed_period_rollover_day' => array('name' => 'fixed_period_rollover_day', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Fixed Period Rollover Day')), 'relationship_type_id' => array('name' => 'relationship_type_id', 'type' => CRM_Utils_Type::T_STRING, 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG), 'relationship_direction' => array('name' => 'relationship_direction', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Relationship Direction'), 'maxlength' => 128, 'size' => CRM_Utils_Type::HUGE), 'visibility' => array('name' => 'visibility', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Visible'), 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG), 'weight' => array('name' => 'weight', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Weight')), 'renewal_msg_id' => array('name' => 'renewal_msg_id', 'type' => CRM_Utils_Type::T_INT, 'FKClassName' => 'CRM_Core_DAO_MessageTemplates'), 'renewal_reminder_day' => array('name' => 'renewal_reminder_day', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Renewal Reminder Day')), 'receipt_text_signup' => array('name' => 'receipt_text_signup', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Receipt Text Signup'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'receipt_text_renewal' => array('name' => 'receipt_text_renewal', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Receipt Text Renewal'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'autorenewal_msg_id' => array('name' => 'autorenewal_msg_id', 'type' => CRM_Utils_Type::T_INT), 'auto_renew' => array('name' => 'auto_renew', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Auto Renew')), 'is_active' => array('name' => 'is_active', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Is Active'), 'default' => ''));
     }
     return self::$_fields;
 }
Beispiel #2
0
 /**
  * Returns all the column names of this table
  *
  * @return array
  */
 static function &fields()
 {
     if (!self::$_fields) {
         self::$_fields = array('id' => array('name' => 'id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Membership Type ID'), 'description' => 'Membership Id', 'required' => true), 'domain_id' => array('name' => 'domain_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Membership Type Domain'), 'description' => 'Which Domain is this match entry for', 'required' => true, 'FKClassName' => 'CRM_Core_DAO_Domain', 'pseudoconstant' => array('table' => 'civicrm_domain', 'keyColumn' => 'id', 'labelColumn' => 'name')), 'membership_type' => array('name' => 'name', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Membership Type'), 'description' => 'Name of Membership Type', 'maxlength' => 128, 'size' => CRM_Utils_Type::HUGE, 'import' => true, 'where' => 'civicrm_membership_type.name', 'headerPattern' => '', 'dataPattern' => '', 'export' => true), 'description' => array('name' => 'description', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Membership Type Description'), 'description' => 'Description of Membership Type', 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE, 'html' => array('type' => 'TextArea')), 'member_of_contact_id' => array('name' => 'member_of_contact_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Membership Type Organization'), 'description' => 'Owner organization for this membership type. FK to Contact ID', 'required' => true, 'FKClassName' => 'CRM_Contact_DAO_Contact'), 'financial_type_id' => array('name' => 'financial_type_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Membership Financial Type'), 'description' => 'If membership is paid by a contribution - what financial type should be used. FK to civicrm_financial_type.id', 'required' => true, 'FKClassName' => 'CRM_Financial_DAO_FinancialType', 'pseudoconstant' => array('table' => 'civicrm_financial_type', 'keyColumn' => 'id', 'labelColumn' => 'name')), 'minimum_fee' => array('name' => 'minimum_fee', 'type' => CRM_Utils_Type::T_MONEY, 'title' => ts('membership Type Minimum Fee'), 'description' => 'Minimum fee for this membership (0 for free/complimentary memberships).', 'precision' => array(20, 2)), 'duration_unit' => array('name' => 'duration_unit', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Membership Type Duration Unit'), 'description' => 'Unit in which membership period is expressed.', 'maxlength' => 8, 'size' => CRM_Utils_Type::EIGHT, 'html' => array('type' => 'Select'), 'pseudoconstant' => array('callback' => 'CRM_Core_SelectValues::membershipTypeUnitList')), 'duration_interval' => array('name' => 'duration_interval', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Membership Type Duration Interval'), 'description' => 'Number of duration units in membership period (e.g. 1 year, 12 months).'), 'period_type' => array('name' => 'period_type', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Membership Type Plan'), 'description' => 'Rolling membership period starts on signup date. Fixed membership periods start on fixed_period_start_day.', 'maxlength' => 8, 'size' => CRM_Utils_Type::EIGHT, 'pseudoconstant' => array('callback' => 'CRM_Core_SelectValues::periodType')), 'fixed_period_start_day' => array('name' => 'fixed_period_start_day', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Fixed Period Start Day'), 'description' => 'For fixed period memberships, month and day (mmdd) on which subscription/membership will start. Period start is back-dated unless after rollover day.'), 'fixed_period_rollover_day' => array('name' => 'fixed_period_rollover_day', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Fixed Period Rollover Day'), 'description' => 'For fixed period memberships, signups after this day (mmdd) rollover to next period.'), 'relationship_type_id' => array('name' => 'relationship_type_id', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Membership Type Relationship'), 'description' => 'FK to Relationship Type ID', 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG), 'relationship_direction' => array('name' => 'relationship_direction', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Relationship Direction'), 'maxlength' => 128, 'size' => CRM_Utils_Type::HUGE), 'max_related' => array('name' => 'max_related', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Max Related Members for Type'), 'description' => 'Maximum number of related memberships.'), 'visibility' => array('name' => 'visibility', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Visible'), 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG, 'html' => array('type' => 'Select'), 'pseudoconstant' => array('callback' => 'CRM_Core_SelectValues::memberVisibility')), 'weight' => array('name' => 'weight', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Order')), 'receipt_text_signup' => array('name' => 'receipt_text_signup', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Membership Type Receipt Text'), 'description' => 'Receipt Text for membership signup', 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE, 'html' => array('type' => 'TextArea')), 'receipt_text_renewal' => array('name' => 'receipt_text_renewal', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Membership Type Renewal Text'), 'description' => 'Receipt Text for membership renewal', 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE, 'html' => array('type' => 'TextArea')), 'auto_renew' => array('name' => 'auto_renew', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Auto Renew'), 'description' => '0 = No auto-renew option; 1 = Give option, but not required; 2 = Auto-renew required;', 'pseudoconstant' => array('callback' => 'CRM_Core_SelectValues::memberAutoRenew')), 'is_active' => array('name' => 'is_active', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Is Active'), 'description' => 'Is this membership_type enabled', 'default' => '1'));
     }
     return self::$_fields;
 }