コード例 #1
0
ファイル: Tag.php プロジェクト: hampelm/Ginsberg-CiviDemo
 /**
  * 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), 'name' => array('name' => 'name', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Name'), 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG), 'description' => array('name' => 'description', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Description'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'parent_id' => array('name' => 'parent_id', 'type' => CRM_Utils_Type::T_INT, 'default' => 'UL', 'FKClassName' => 'CRM_Core_DAO_Tag'), 'is_selectable' => array('name' => 'is_selectable', 'type' => CRM_Utils_Type::T_BOOLEAN, 'default' => ''), 'is_reserved' => array('name' => 'is_reserved', 'type' => CRM_Utils_Type::T_BOOLEAN), 'is_tagset' => array('name' => 'is_tagset', 'type' => CRM_Utils_Type::T_BOOLEAN), 'used_for' => array('name' => 'used_for', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Used For'), 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG, 'default' => 'UL'));
     }
     return self::$_fields;
 }
コード例 #2
0
ファイル: Tag.php プロジェクト: kidaa30/yes
 /**
  * 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('Tag ID'), 'description' => 'Tag ID', 'required' => true), 'name' => array('name' => 'name', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Tag Name'), 'description' => 'Name of Tag.', 'required' => true, 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG), 'description' => array('name' => 'description', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Description'), 'description' => 'Optional verbose description of the tag.', 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'parent_id' => array('name' => 'parent_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Parent Tag'), 'description' => 'Optional parent id for this tag.', 'default' => 'NULL', 'FKClassName' => 'CRM_Core_DAO_Tag'), 'is_selectable' => array('name' => 'is_selectable', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Display Tag?'), 'description' => 'Is this tag selectable / displayed', 'default' => '1'), 'is_reserved' => array('name' => 'is_reserved', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Reserved')), 'is_tagset' => array('name' => 'is_tagset', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Tagset')), 'used_for' => array('name' => 'used_for', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Used For'), 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG, 'default' => 'NULL', 'html' => array('type' => 'Select'), 'pseudoconstant' => array('optionGroupName' => 'tag_used_for', 'optionEditPath' => 'civicrm/admin/options/tag_used_for')), 'created_id' => array('name' => 'created_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Tag Created By'), 'description' => 'FK to civicrm_contact, who created this tag', 'FKClassName' => 'CRM_Contact_DAO_Contact'), 'created_date' => array('name' => 'created_date', 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, 'title' => ts('Tag Created Date'), 'description' => 'Date and time that tag was created.'));
     }
     return self::$_fields;
 }