Example #1
0
 /**
  * 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('UF Match ID'), 'description' => 'System generated ID.', 'required' => true), 'domain_id' => array('name' => 'domain_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('UF Match Domain ID'), 'description' => 'Which Domain is this match entry for', 'required' => true, 'FKClassName' => 'CRM_Core_DAO_Domain', 'pseudoconstant' => array('table' => 'civicrm_domain', 'keyColumn' => 'id', 'labelColumn' => 'name')), 'uf_id' => array('name' => 'uf_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('CMS ID'), 'description' => 'UF ID', 'required' => true), 'uf_name' => array('name' => 'uf_name', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('CMS Unique Identifier'), 'description' => 'UF Name', 'maxlength' => 128, 'size' => CRM_Utils_Type::HUGE), 'contact_id' => array('name' => 'contact_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('CiviCRM Contact ID'), 'description' => 'FK to Contact ID', 'FKClassName' => 'CRM_Contact_DAO_Contact'), 'language' => array('name' => 'language', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Preferred Language'), 'description' => 'UI language preferred by the given user/contact', 'maxlength' => 5, 'size' => CRM_Utils_Type::SIX));
     }
     return self::$_fields;
 }
Example #2
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), 'domain_id' => array('name' => 'domain_id', 'type' => CRM_Utils_Type::T_INT, 'required' => true, 'FKClassName' => 'CRM_Core_DAO_Domain'), 'uf_id' => array('name' => 'uf_id', 'type' => CRM_Utils_Type::T_INT, 'required' => true), 'uf_name' => array('name' => 'uf_name', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Uf Name'), 'maxlength' => 128, 'size' => CRM_Utils_Type::HUGE), 'contact_id' => array('name' => 'contact_id', 'type' => CRM_Utils_Type::T_INT, 'FKClassName' => 'CRM_Contact_DAO_Contact'), 'language' => array('name' => 'language', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Language'), 'maxlength' => 5, 'size' => CRM_Utils_Type::EIGHT));
     }
     return self::$_fields;
 }