Exemplo n.º 1
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), 'name' => array('name' => 'name', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Name'), 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG), 'abbreviation' => array('name' => 'abbreviation', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Abbreviation'), 'maxlength' => 3, 'size' => CRM_Utils_Type::FOUR), 'gmt' => array('name' => 'gmt', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Gmt'), 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG), 'offset' => array('name' => 'offset', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Offset')), 'country_id' => array('name' => 'country_id', 'type' => CRM_Utils_Type::T_INT, 'required' => true, 'FKClassName' => 'CRM_Core_DAO_Country'));
     }
     return self::$_fields;
 }
Exemplo n.º 2
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('Timezone ID'), 'description' => 'Timezone Id', 'required' => true), 'name' => array('name' => 'name', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Timezone Name'), 'description' => 'Timezone full name', 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG), 'abbreviation' => array('name' => 'abbreviation', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Timezone Abbreviation'), 'description' => 'ISO Code for timezone abbreviation', 'maxlength' => 3, 'size' => CRM_Utils_Type::FOUR), 'gmt' => array('name' => 'gmt', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('GMT Name of Timezone'), 'description' => 'GMT name of the timezone', 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG), 'offset' => array('name' => 'offset', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('GMT Offset')), 'country_id' => array('name' => 'country_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Country'), 'description' => 'Country Id', 'required' => true, 'FKClassName' => 'CRM_Core_DAO_Country'));
     }
     return self::$_fields;
 }