Esempio n. 1
0
 /**
  * returns all the column names of this table
  *
  * @access public
  * @return array
  */
 static function &fields()
 {
     if (!self::$_fields) {
         self::$_fields = array('pcp_id' => array('name' => 'id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Personal Campaign Page ID'), 'required' => true), 'pcp_contact_id' => array('name' => 'contact_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Contact ID'), 'required' => true, 'FKClassName' => 'CRM_Contact_DAO_Contact'), 'status_id' => array('name' => 'status_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Personal Campaign Page Status'), 'required' => true, 'pseudoconstant' => array('optionGroupName' => 'pcp_status')), 'title' => array('name' => 'title', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Personal Campaign Page Title'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE, 'default' => 'NULL'), 'intro_text' => array('name' => 'intro_text', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Intro Text'), 'default' => 'NULL'), 'page_text' => array('name' => 'page_text', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Page Text'), 'default' => 'NULL'), 'donate_link_text' => array('name' => 'donate_link_text', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Donate Link Text'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE, 'default' => 'NULL'), 'page_id' => array('name' => 'page_id', 'type' => CRM_Utils_Type::T_INT, 'required' => true), 'page_type' => array('name' => 'page_type', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('PCP Page Type'), 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG, 'default' => 'contribute'), 'pcp_block_id' => array('name' => 'pcp_block_id', 'type' => CRM_Utils_Type::T_INT, 'required' => true), 'is_thermometer' => array('name' => 'is_thermometer', 'type' => CRM_Utils_Type::T_INT), 'is_honor_roll' => array('name' => 'is_honor_roll', 'type' => CRM_Utils_Type::T_INT), 'goal_amount' => array('name' => 'goal_amount', 'type' => CRM_Utils_Type::T_MONEY, 'title' => ts('Goal Amount')), 'currency' => array('name' => 'currency', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Currency'), 'maxlength' => 3, 'size' => CRM_Utils_Type::FOUR, 'default' => 'NULL', 'pseudoconstant' => array('table' => 'civicrm_currency', 'keyColumn' => 'name', 'labelColumn' => 'full_name', 'nameColumn' => 'numeric_code')), 'is_active' => array('name' => 'is_active', 'type' => CRM_Utils_Type::T_BOOLEAN));
     }
     return self::$_fields;
 }
Esempio n. 2
0
 /**
  * Returns all the column names of this table
  *
  * @return array
  */
 static function &fields()
 {
     if (!self::$_fields) {
         self::$_fields = array('pcp_id' => array('name' => 'id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Personal Campaign Page ID'), 'description' => 'Personal Campaign Page ID', 'required' => true), 'pcp_contact_id' => array('name' => 'contact_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Contact ID'), 'description' => 'FK to Contact ID', 'required' => true, 'FKClassName' => 'CRM_Contact_DAO_Contact', 'html' => array('type' => 'EntityRef')), 'status_id' => array('name' => 'status_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Personal Campaign Page Status'), 'required' => true, 'html' => array('type' => 'Select'), 'pseudoconstant' => array('optionGroupName' => 'pcp_status', 'optionEditPath' => 'civicrm/admin/options/pcp_status')), 'title' => array('name' => 'title', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Personal Campaign Page Title'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE, 'default' => 'NULL', 'html' => array('type' => 'Text')), 'intro_text' => array('name' => 'intro_text', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Intro Text'), 'default' => 'NULL', 'html' => array('type' => 'TexArea')), 'page_text' => array('name' => 'page_text', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Page Text'), 'default' => 'NULL', 'html' => array('type' => 'TexArea')), 'donate_link_text' => array('name' => 'donate_link_text', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Donate Link Text'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE, 'default' => 'NULL', 'html' => array('type' => 'Text')), 'page_id' => array('name' => 'page_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Contribution Page'), 'description' => 'The Contribution or Event Page which triggered this pcp', 'required' => true), 'page_type' => array('name' => 'page_type', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('PCP Page Type'), 'description' => 'The type of PCP this is: contribute or event', 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG, 'default' => 'contribute', 'html' => array('type' => 'Select')), 'pcp_block_id' => array('name' => 'pcp_block_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('PCP Block'), 'description' => 'The pcp block that this pcp page was created from', 'required' => true), 'is_thermometer' => array('name' => 'is_thermometer', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Use Thermometer?'), 'html' => array('type' => 'CheckBox')), 'is_honor_roll' => array('name' => 'is_honor_roll', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Show Honor Roll?'), 'html' => array('type' => 'CheckBox')), 'goal_amount' => array('name' => 'goal_amount', 'type' => CRM_Utils_Type::T_MONEY, 'title' => ts('Goal Amount'), 'description' => 'Goal amount of this Personal Campaign Page.', 'precision' => array(20, 2), 'html' => array('type' => 'Text')), 'currency' => array('name' => 'currency', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Currency'), 'description' => '3 character string, value from config setting or input via user.', 'maxlength' => 3, 'size' => CRM_Utils_Type::FOUR, 'default' => 'NULL', 'html' => array('type' => 'Select'), 'pseudoconstant' => array('table' => 'civicrm_currency', 'keyColumn' => 'name', 'labelColumn' => 'full_name', 'nameColumn' => 'numeric_code')), 'is_active' => array('name' => 'is_active', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Enabled?'), 'description' => 'Is Personal Campaign Page enabled/active?', 'html' => array('type' => 'CheckBox')), 'is_notify' => array('name' => 'is_notify', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Notify Owner?'), 'description' => 'Notify owner via email when someone donates to page?', 'html' => array('type' => 'CheckBox')));
     }
     return self::$_fields;
 }