コード例 #1
0
ファイル: EntityTag.php プロジェクト: bhirsch/voipdev
 /**
  * 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), 'contact_id' => array('name' => 'contact_id', 'type' => CRM_Utils_Type::T_INT, 'required' => true, 'FKClassName' => 'CRM_Contact_DAO_Contact'), 'tag_id' => array('name' => 'tag_id', 'type' => CRM_Utils_Type::T_INT, 'required' => true, 'FKClassName' => 'CRM_Core_DAO_Tag'));
     }
     return self::$_fields;
 }
コード例 #2
0
ファイル: EntityTag.php プロジェクト: agroknow/mermix
 /**
  * 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('Entity Tag ID'), 'description' => 'primary key', 'required' => true), 'entity_table' => array('name' => 'entity_table', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Entity Table'), 'description' => 'physical tablename for entity being joined to file, e.g. civicrm_contact', 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG, 'pseudoconstant' => array('optionGroupName' => 'tag_used_for', 'optionEditPath' => 'civicrm/admin/options/tag_used_for')), 'entity_id' => array('name' => 'entity_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Entity ID'), 'description' => 'FK to entity table specified in entity_table column.', 'required' => true), 'tag_id' => array('name' => 'tag_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Tag'), 'description' => 'FK to civicrm_tag', 'required' => true, 'FKClassName' => 'CRM_Core_DAO_Tag', 'html' => array('type' => 'Select'), 'pseudoconstant' => array('table' => 'civicrm_tag', 'keyColumn' => 'id', 'labelColumn' => 'name')));
     }
     return self::$_fields;
 }
コード例 #3
0
ファイル: EntityTag.php プロジェクト: hguru/224Civi
 /**
  * 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, 'title' => ts('Entity Tag ID'), '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, 'title' => ts('Entity ID'), 'required' => true), 'tag_id' => array('name' => 'tag_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Tag ID'), 'required' => true, 'FKClassName' => 'CRM_Core_DAO_Tag', 'pseudoconstant' => array('table' => 'civicrm_tag', 'keyColumn' => 'id', 'labelColumn' => 'name')));
     }
     return self::$_fields;
 }
コード例 #4
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), 'tag_id' => array('name' => 'tag_id', 'type' => CRM_Utils_Type::T_INT, 'required' => true, 'FKClassName' => 'CRM_Core_DAO_Tag'));
     }
     return self::$_fields;
 }