Property | Type | Description | |
---|---|---|---|
$dnsResolver | Net_DNS2_Resolver | DNS resolver. |
Property | Type | Description | |
---|---|---|---|
$_cache | array | Cached values. |
Method | Description | |
---|---|---|
checkCharset ( string $charset ) : boolean | Check to see if character set is valid for htmlspecialchars() calls. | |
getCountryByHost ( string $host, string $datafile = null ) : mixed | Get country information from a hostname or IP address. | |
getCountryISO ( string $code = null ) : mixed | Returns either a specific or all ISO-3166 country names. | |
getLangInfo ( const $item ) : array | Get the language info returned by nl_langinfo(), but cache it, to avoid repeated calls. | |
getLanguageISO ( string $code = null ) : mixed | Returns either a specific or all ISO-639 language names. | |
getLocaleInfo ( ) : array | Get the locale info returned by localeconv(), but cache it, to avoid repeated calls. | |
getTimezones ( ) : array | Returns a list of available timezones. | |
getTimezonesWithAbbreviations ( ) : array | Returns a list of available timezones, including timezone abbreviations. | |
tldLookup ( string $code ) : mixed | Do a top level domain (TLD) lookup. |
public static checkCharset ( string $charset ) : boolean | ||
$charset | string | The character set to check. |
return | boolean | Is charset valid for the current system? |
public static getCountryByHost ( string $host, string $datafile = null ) : mixed | ||
$host | string | The hostname or IP address. |
$datafile | string | The datafile for the GeoIP lookup. If not set, will skip this lookup. |
return | mixed | On success, return an array with the following entries: 'code' => Country Code 'name' => Country Name On failure, return false. |
public static getCountryISO ( string $code = null ) : mixed | ||
$code | string | The ISO 3166 country code. |
return | mixed | 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. |
public static getLangInfo ( const $item ) : array | ||
$item | const | The langinfo item to return. |
return | array | The results of nl_langinfo(). |
public static getLanguageISO ( string $code = null ) : mixed | ||
$code | string | The ISO 639 language code. |
return | mixed | 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). |
public static getLocaleInfo ( ) : array | ||
return | array | The results of localeconv(). |
public static getTimezones ( ) : array | ||
return | array | List of timezones. |
public static getTimezonesWithAbbreviations ( ) : array | ||
return | array | List of timezones. |