CaMykS  1.0-20181201
 All Classes Files Functions Variables Pages
Functions
countries.php.inc File Reference

Countries specific methods. More...

Functions

 countries_getCodeList ($params=array())
 
 countries_getList ()
 
 countries_getTitleList ($params=array())
 
 countries_loadLocales ($language=null)
 
 countries_getTranslation ($country='')
 
 countries_getCode ($lang='', $key='')
 
 countries_getPhonePrefixes ()
 
 countries_getPhonePrefix ($country)
 

Detailed Description

Countries specific methods.

Country codes define by ISO 3166-2 list

Engine / Tool Library

Author
CaMykS Team camyk.nosp@m.s.co.nosp@m.ntact.nosp@m.@gma.nosp@m.il.co.nosp@m.m
Version
1.0.1
Date
Creation: Sep 2007
Modification: Apr 2018
Note
This program is distributed as is - WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Function Documentation

countries_getCode (   $lang = '',
  $key = '' 
)

Return country code from name.

Parameters
string$lang
string$key
Returns
string on success, false on error
countries_getCodeList (   $params = array())

Return countries code list.

Parameters
array$params
Returns
array
countries_getList ( )

Return generic country list.

Returns
array
countries_getPhonePrefix (   $country)

Return phone prefix value for given country.

Parameters
string$country
Returns
string
countries_getPhonePrefixes ( )

Return country phone prefixes list.

Returns
array
countries_getTitleList (   $params = array())

Return custom country list.

Parameters
array$params
Returns
array
countries_getTranslation (   $country = '')

Return country localised name.

Parameters
string$country
Returns
string
countries_loadLocales (   $language = null)

Load countries locales.

Parameters
string$language
Returns
void