Пример #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('Activity Contact ID'), 'description' => 'Activity contact id', 'required' => true), 'activity_id' => array('name' => 'activity_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Activity ID'), 'description' => 'Foreign key to the activity for this record.', 'required' => true, 'FKClassName' => 'CRM_Activity_DAO_Activity'), 'contact_id' => array('name' => 'contact_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Contact ID (match to contact)'), 'description' => 'Foreign key to the contact for this record.', 'required' => true, 'import' => true, 'where' => 'civicrm_activity_contact.contact_id', 'headerPattern' => '', 'dataPattern' => '', 'export' => true, 'FKClassName' => 'CRM_Contact_DAO_Contact'), 'record_type_id' => array('name' => 'record_type_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Record Type ID'), 'description' => 'Nature of this contact\'s role in the activity: 1 assignee, 2 creator, 3 focus or target.', 'html' => array('type' => 'Select'), 'pseudoconstant' => array('optionGroupName' => 'activity_contacts', 'optionEditPath' => 'civicrm/admin/options/activity_contacts')));
     }
     return self::$_fields;
 }
Пример #2
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, 'title' => ts('Activity Contact ID'), 'required' => true), 'activity_id' => array('name' => 'activity_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Activity ID'), 'required' => true, 'FKClassName' => 'CRM_Activity_DAO_Activity'), 'contact_id' => array('name' => 'contact_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Contact ID (match to contact)'), 'required' => true, 'import' => true, 'where' => 'civicrm_activity_contact.contact_id', 'headerPattern' => '', 'dataPattern' => '', 'export' => true, 'FKClassName' => 'CRM_Contact_DAO_Contact'), 'record_type_id' => array('name' => 'record_type_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Record Type ID'), 'pseudoconstant' => array('optionGroupName' => 'activity_contacts')));
     }
     return self::$_fields;
 }