Countries

Summary
Countries
AuthorJaybill McCarthy
Licensehttp://communit.as/docs/license
See AlsoCts_Db_Table_Abstract
Instance Variables
$_nameThe name of the table or view to interact with in the data source.
$_primaryThe primary key of the table or view to interact with in the data source.
Instance Methods
getCountriesArrayGets an array of countries from the database.
getRegionsArrayGets an array of regions from the database.

Author

Jaybill McCarthy

Instance Variables

$_name

protected $_name

The name of the table or view to interact with in the data source.

$_primary

protected $_primary

The primary key of the table or view to interact with in the data source.

Instance Methods

getCountriesArray

public function getCountriesArray($nullval =  "Any")

Gets an array of countries from the database.

Arguments

nullval (optional)A string to describe the first entry in the returned array which will have a null value.  Default is “Any”.

Returns

An array of key-value pairs representing countries.

getRegionsArray

public function getRegionsArray($nullval =  "Any")

Gets an array of regions from the database.  Typically continents.

Arguments

nullval (optional)A string to describe the first entry in the returned array which will have a null value.  Default is “Any”.

Returns

An array of key-value pairs representing regions.

protected $_name
The name of the table or view to interact with in the data source.
protected $_primary
The primary key of the table or view to interact with in the data source.
public function getCountriesArray($nullval =  "Any")
Gets an array of countries from the database.
public function getRegionsArray($nullval =  "Any")
Gets an array of regions from the database.
Close