Пример #1
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, 'required' => true), 'contact_id' => array('name' => 'contact_id', 'type' => CRM_Utils_Type::T_INT, 'FKClassName' => 'CRM_Contact_DAO_Contact'), 'location_type_id' => array('name' => 'location_type_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('IM Location Type'), 'pseudoconstant' => array('table' => 'civicrm_location_type', 'keyColumn' => 'id', 'labelColumn' => 'display_name')), 'name' => array('name' => 'name', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('IM Screen Name'), 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG, 'import' => true, 'where' => 'civicrm_im.name', 'headerPattern' => '/I(nstant )?M(ess.*)?|screen(\\s+)?name/i', 'dataPattern' => '/^[A-Za-z][0-9A-Za-z]{20,}$/', 'export' => true), 'provider_id' => array('name' => 'provider_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('IM Provider'), 'pseudoconstant' => array('optionGroupName' => 'instant_messenger_service')), 'is_primary' => array('name' => 'is_primary', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Is IM Primary?')), 'is_billing' => array('name' => 'is_billing', 'type' => CRM_Utils_Type::T_BOOLEAN));
     }
     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), 'contact_id' => array('name' => 'contact_id', 'type' => CRM_Utils_Type::T_INT, 'FKClassName' => 'CRM_Contact_DAO_Contact'), 'location_type_id' => array('name' => 'location_type_id', 'type' => CRM_Utils_Type::T_INT), 'name' => array('name' => 'name', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('IM Screen Name'), 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG, 'import' => true, 'where' => 'civicrm_im.name', 'headerPattern' => '/I(nstant )?M(ess.*)?|screen(\\s+)?name/i', 'dataPattern' => '/^[A-Za-z][0-9A-Za-z]{20,}$/', 'export' => true), 'provider_id' => array('name' => 'provider_id', 'type' => CRM_Utils_Type::T_INT), 'is_primary' => array('name' => 'is_primary', 'type' => CRM_Utils_Type::T_BOOLEAN), 'is_billing' => array('name' => 'is_billing', 'type' => CRM_Utils_Type::T_BOOLEAN));
     }
     return self::$_fields;
 }
Пример #3
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('Instant Messenger ID'), 'description' => 'Unique IM ID', 'required' => true), 'contact_id' => array('name' => 'contact_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('IM Contact'), 'description' => 'FK to Contact ID', 'FKClassName' => 'CRM_Contact_DAO_Contact'), 'location_type_id' => array('name' => 'location_type_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('IM Location Type'), 'description' => 'Which Location does this email belong to.', 'html' => array('type' => 'Select'), 'pseudoconstant' => array('table' => 'civicrm_location_type', 'keyColumn' => 'id', 'labelColumn' => 'display_name')), 'name' => array('name' => 'name', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('IM Screen Name'), 'description' => 'IM screen name', 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG, 'import' => true, 'where' => 'civicrm_im.name', 'headerPattern' => '/I(nstant )?M(ess.*)?|screen(\\s+)?name/i', 'dataPattern' => '/^[A-Za-z][0-9A-Za-z]{20,}$/', 'export' => true, 'html' => array('type' => 'Text')), 'provider_id' => array('name' => 'provider_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('IM Provider'), 'description' => 'Which IM Provider does this screen name belong to.', 'html' => array('type' => 'Select'), 'pseudoconstant' => array('optionGroupName' => 'instant_messenger_service', 'optionEditPath' => 'civicrm/admin/options/instant_messenger_service')), 'is_primary' => array('name' => 'is_primary', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Is IM Primary?'), 'description' => 'Is this the primary IM for this contact and location.'), 'is_billing' => array('name' => 'is_billing', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Is IM Billing?'), 'description' => 'Is this the billing?'));
     }
     return self::$_fields;
 }