예제 #1
0
파일: Website.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('Website ID'), 'required' => true), 'contact_id' => array('name' => 'contact_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Contact'), 'FKClassName' => 'CRM_Contact_DAO_Contact'), 'url' => array('name' => 'url', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Website'), 'maxlength' => 128, 'size' => CRM_Utils_Type::BIG, 'import' => true, 'where' => 'civicrm_website.url', 'headerPattern' => '/Website/i', 'dataPattern' => '/^[A-Za-z][0-9A-Za-z]{20,}$/', 'export' => true), 'website_type_id' => array('name' => 'website_type_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Website Type'), 'pseudoconstant' => array('optionGroupName' => 'website_type')));
     }
     return self::$_fields;
 }
예제 #2
0
파일: Website.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('Website ID'), 'description' => 'Unique Website ID', 'required' => true), 'contact_id' => array('name' => 'contact_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Contact'), 'description' => 'FK to Contact ID', 'FKClassName' => 'CRM_Contact_DAO_Contact'), 'url' => array('name' => 'url', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Website'), 'description' => 'Website', 'maxlength' => 128, 'size' => 30, 'import' => true, 'where' => 'civicrm_website.url', 'headerPattern' => '/Website/i', 'dataPattern' => '/^[A-Za-z][0-9A-Za-z]{20,}$/', 'export' => true, 'html' => array('type' => 'Text')), 'website_type_id' => array('name' => 'website_type_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Website Type'), 'description' => 'Which Website type does this website belong to.', 'html' => array('type' => 'Select'), 'pseudoconstant' => array('optionGroupName' => 'website_type', 'optionEditPath' => 'civicrm/admin/options/website_type')));
     }
     return self::$_fields;
 }