$dnsResolver
$dnsResolver : \Net_DNS2_Resolver
DNS resolver.
The Horde_Nls class provides Native Language Support.
This includes common methods for handling language data, timezones, and hostname->country lookups.
getTimezonesWithAbbreviations() : array
Returns a list of available timezones, including timezone abbreviations.
Contrary to getTimezones() the timezone IDs are values and the timezone labels are the keys, to allow multiple labels for the same timezone.
List of timezones.
getCountryByHost(string $host, string $datafile = null) : mixed
Get country information from a hostname or IP address.
string | $host | The hostname or IP address. |
string | $datafile | The datafile for the GeoIP lookup. If not set, will skip this lookup. |
On success, return an array with the following entries: 'code' => Country Code 'name' => Country Name On failure, return false.
getCountryISO(string $code = null) : mixed
Returns either a specific or all ISO-3166 country names.
string | $code | The ISO 3166 country code. |
If a country code has been requested will return the corresponding country name. If empty will return an array of all the country codes and their names.
getLanguageISO(string $code = null) : mixed
Returns either a specific or all ISO-639 language names.
string | $code | The ISO 639 language code. |
If a language code has been requested will return the corresponding language name. If empty will return an array of all the language codes (keys) and their names (values).