Countries
Manipulates the countries table, all functions can be accessed statically, i.e. Countries::getCountries(); and no constructor is necessary.
Located in /includes/classes/kernel/Countries.php (line 18)
deleteCountry (line 344)
Delete a country - will only delete 1 row, even if multiple rows exist such as when deleting by the code identifier.
- string $identifier
- mixed $value: name/code=string id=integer
filterCountryData (line 161)
Filter country data, removes html tags, converts to entities, and enforces utf8 data for all variables in $data if it isn't an integer.
- array $data
getCountries (line 27)
Gets all country names in descending order by rank, assending order by name
getCountryCode (line 93)
Get a country's code by id or name
- string $identifier: id or name
- mixed $value: id=integer value=string
getCountryId (line 121)
Get a country's id by name or code
- string $identifier: name or code
- string $value
getCountryName (line 54)
Get a country's name, by id or code.
- string $identifier: id or code
- mixed $value: id=integer code=string
insertCountry (line 282)
Insert data for a new country
- array $data
- boolan $filter: default=true if true data is filtered
maintenanceStates (line 626)
Repair and optimize the countries table
resetCountries (line 372)
Reset the countries table to its installation state
selectCountries (line 184)
Selects all fields for each country in table
selectCountry (line 238)
Select a single country, returns all fields
- string $identifier: name,code,or id
- mixed $value: name/code=string id=integer
selectEnabledCountries (line 210)
Selects all fields for each enabled country in table
updateCountry (line 312)
Update data for a country
- array $data
- boolan $filter: default=true if true data is filtered

