/** * 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), 'name' => array('name' => 'name', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Country'), 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG, 'import' => true, 'where' => 'civicrm_country.name', 'headerPattern' => '/country/i', 'dataPattern' => '/^[A-Z][a-z]+\\.?(\\s+[A-Z][a-z]+){0,3}$/', 'export' => true), 'iso_code' => array('name' => 'iso_code', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Iso Code'), 'maxlength' => 2, 'size' => CRM_Utils_Type::TWO), 'country_code' => array('name' => 'country_code', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Country Code'), 'maxlength' => 4, 'size' => CRM_Utils_Type::FOUR), 'address_format_id' => array('name' => 'address_format_id', 'type' => CRM_Utils_Type::T_INT, 'FKClassName' => 'CRM_Core_DAO_AddressFormat'), 'idd_prefix' => array('name' => 'idd_prefix', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Idd Prefix'), 'maxlength' => 4, 'size' => CRM_Utils_Type::FOUR), 'ndd_prefix' => array('name' => 'ndd_prefix', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Ndd Prefix'), 'maxlength' => 4, 'size' => CRM_Utils_Type::FOUR), 'region_id' => array('name' => 'region_id', 'type' => CRM_Utils_Type::T_INT, 'required' => true, 'FKClassName' => 'CRM_Core_DAO_Worldregion'), 'is_province_abbreviated' => array('name' => 'is_province_abbreviated', 'type' => CRM_Utils_Type::T_BOOLEAN)); } return self::$_fields; }
/** * 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('Country ID'), 'description' => 'Country Id', 'required' => true), 'name' => array('name' => 'name', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Country'), 'description' => 'Country Name', 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG, 'import' => true, 'where' => 'civicrm_country.name', 'headerPattern' => '/country/i', 'dataPattern' => '/^[A-Z][a-z]+\\.?(\\s+[A-Z][a-z]+){0,3}$/', 'export' => true), 'iso_code' => array('name' => 'iso_code', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Country ISO Code'), 'description' => 'ISO Code', 'maxlength' => 2, 'size' => CRM_Utils_Type::TWO), 'country_code' => array('name' => 'country_code', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Country Phone Prefix'), 'description' => 'National prefix to be used when dialing TO this country.', 'maxlength' => 4, 'size' => CRM_Utils_Type::FOUR), 'address_format_id' => array('name' => 'address_format_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Address Format'), 'description' => 'Foreign key to civicrm_address_format.id.', 'FKClassName' => 'CRM_Core_DAO_AddressFormat'), 'idd_prefix' => array('name' => 'idd_prefix', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Outgoing Phone Prefix'), 'description' => 'International direct dialing prefix from within the country TO another country', 'maxlength' => 4, 'size' => CRM_Utils_Type::FOUR), 'ndd_prefix' => array('name' => 'ndd_prefix', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Area Code'), 'description' => 'Access prefix to call within a country to a different area', 'maxlength' => 4, 'size' => CRM_Utils_Type::FOUR), 'region_id' => array('name' => 'region_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Region'), 'description' => 'Foreign key to civicrm_worldregion.id.', 'required' => true, 'FKClassName' => 'CRM_Core_DAO_Worldregion'), 'is_province_abbreviated' => array('name' => 'is_province_abbreviated', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Abbreviate Province?'), 'description' => 'Should state/province be displayed as abbreviation for contacts from this country?')); } return self::$_fields; }