Пример #1
0
 /**
  * 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, 'FKClassName' => 'CRM_Core_DAO_Domain'), 'name' => array('name' => 'name', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Name'), 'required' => true, 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'title' => array('name' => 'title', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Title'), 'required' => true, 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'is_active' => array('name' => 'is_active', 'type' => CRM_Utils_Type::T_BOOLEAN, 'default' => ''), 'help_pre' => array('name' => 'help_pre', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Help Pre'), 'rows' => 4, 'cols' => 80), 'help_post' => array('name' => 'help_post', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Help Post'), 'rows' => 4, 'cols' => 80), 'javascript' => array('name' => 'javascript', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Javascript'), 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG), 'extends' => array('name' => 'extends', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Extends'), 'required' => true, 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'contribution_type_id' => array('name' => 'contribution_type_id', 'type' => CRM_Utils_Type::T_INT, 'default' => 'UL', 'FKClassName' => 'CRM_Contribute_DAO_ContributionType'), 'is_quick_config' => array('name' => 'is_quick_config', 'type' => CRM_Utils_Type::T_BOOLEAN), 'is_reserved' => array('name' => 'is_reserved', 'type' => CRM_Utils_Type::T_BOOLEAN));
     }
     return self::$_fields;
 }