예제 #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('Case Contact ID'), 'description' => 'Unique case-contact association id', 'required' => true), 'case_id' => array('name' => 'case_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Case'), 'description' => 'Case ID of case-contact association.', 'required' => true, 'FKClassName' => 'CRM_Case_DAO_Case'), 'case_contact_id' => array('name' => 'contact_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Contact ID'), 'description' => 'Contact ID of contact record given case belongs to.', 'required' => true, 'FKClassName' => 'CRM_Contact_DAO_Contact', 'html' => array('type' => 'EntityRef')));
     }
     return self::$_fields;
 }
예제 #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), 'case_id' => array('name' => 'case_id', 'type' => CRM_Utils_Type::T_INT, 'required' => true, 'FKClassName' => 'CRM_Case_DAO_Case'), 'case_contact_id' => array('name' => 'contact_id', 'type' => CRM_Utils_Type::T_INT, 'required' => true, 'FKClassName' => 'CRM_Contact_DAO_Contact'));
     }
     return self::$_fields;
 }