Country
class Country extends Model
A country
Constants
TABLE |
The name of the database table used for queries |
Methods
string
getName()
Get the name of the country in the default language
string
getISO()
Get the ISO code of a country
string
getFlagLiteral()
Get the HTML to display a specific flag
static Country[]
getCountries()
Get all the countries in the database
static array
getCountriesWithISO()
Get an associative array with country ISO code as keys and country names as values
static int
getIdFromISO(string $iso)
Given a country's ISO, get its ID
static QueryBuilder
getQueryBuilder()
Get a query builder for countries
Details
at line line 46
string
getName()
Get the name of the country in the default language
at line line 56
string
getISO()
Get the ISO code of a country
at line line 66
string
getFlagLiteral()
Get the HTML to display a specific flag
at line line 76
static Country[]
getCountries()
Get all the countries in the database
at line line 87
static array
getCountriesWithISO()
Get an associative array with country ISO code as keys and country names as values
at line line 112
static int
getIdFromISO(string $iso)
Given a country's ISO, get its ID
at line line 122
static QueryBuilder
getQueryBuilder()
Get a query builder for countries