Beispiel #1
0
 /**
  * returns all the column names of this table
  *
  * @access public
  * @return array
  */
 function &fields()
 {
     if (!self::$_fields) {
         self::$_fields = array('id' => array('name' => 'id', 'type' => CRM_Utils_Type::T_INT, 'required' => true), 'entity_table' => array('name' => 'entity_table', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Entity Table'), 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG), 'entity_id' => array('name' => 'entity_id', 'type' => CRM_Utils_Type::T_INT, 'required' => true, 'FKClassName' => 'CRM_Contribute_DAO_ContributionPage'), 'supporter_profile_id' => array('name' => 'supporter_profile_id', 'type' => CRM_Utils_Type::T_INT, 'default' => 'UL', 'FKClassName' => 'CRM_Core_DAO_UFGroup'), 'is_approval_needed' => array('name' => 'is_approval_needed', 'type' => CRM_Utils_Type::T_BOOLEAN, 'default' => 'UL'), 'is_tellfriend_enabled' => array('name' => 'is_tellfriend_enabled', 'type' => CRM_Utils_Type::T_BOOLEAN, 'default' => 'UL'), 'tellfriend_limit' => array('name' => 'tellfriend_limit', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Tellfriend Limit'), 'default' => 'UL'), 'link_text' => array('name' => 'link_text', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Link Text'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE, 'default' => 'UL'), 'is_active' => array('name' => 'is_active', 'type' => CRM_Utils_Type::T_BOOLEAN, 'default' => ''), 'notify_email' => array('name' => 'notify_email', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Notify Email'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE, 'default' => 'UL'));
     }
     return self::$_fields;
 }