FreenetIS
 All Classes Namespaces Functions Variables Pages
Public Member Functions | Protected Attributes | List of all members
Country_Model Class Reference
Inheritance diagram for Country_Model:
ORM

Public Member Functions

 select_country_list ()
 Gets list of countries for combo box.
 select_country_code_list ()
 Gets list of countries for combo box only with country code.
 find_country_by_area ($area)
 Finds country by area (in VoIP)
 find_phone_country ($phone_number)
 Search for phone prefix in country table.
 find_phone_country_id ($phone_number)
 Search for phone prefix in country table.
 find_phone_country_code ($phone_number)
 Search for phone prefix in country table.
 enable_countries ($countries)
 Enable countries to use.

Protected Attributes

 $has_many = array('address_points', 'phone_operators')
 $has_and_belongs_to_many = array('contacts')

Member Function Documentation

Country_Model::enable_countries (   $countries)

Enable countries to use.

Author
David Raška
Parameters
array$countries
Country_Model::find_country_by_area (   $area)

Finds country by area (in VoIP)

Author
Michal Kliment
Parameters
string$area
Returns
MySQL_Result object
Country_Model::find_phone_country (   $phone_number)

Search for phone prefix in country table.

Author
Ondřej Fibich
Parameters
string$phone_numberTelephone number with prefix
Returns
mixed Country or FALSE
Country_Model::find_phone_country_code (   $phone_number)

Search for phone prefix in country table.

Author
Ondřej Fibich
Parameters
string$phone_numberTelephone number with prefix
Returns
integer Country code or zero
Country_Model::find_phone_country_id (   $phone_number)

Search for phone prefix in country table.

Author
Ondřej Fibich
Parameters
string$phone_numberTelephone number with prefix
Returns
mixed Country ID or FALSE
Country_Model::select_country_code_list ( )

Gets list of countries for combo box only with country code.

Returns
array
Country_Model::select_country_list ( )

Gets list of countries for combo box.

Returns
array

The documentation for this class was generated from the following file: