\Locale\UtilityLocaleToolbox

Locale Toolbox class.

Provides a set of utility methods for working with languages.

Summary

Methods
Properties
Constants
info()
languagesList()
flagsList()
No public properties found
No constants found
No protected methods found
$_catalog
N/A
No private methods found
No private properties found
N/A

Properties

$_catalog

$_catalog : array

HTTP_ACCEPT_LANGUAGE catalog holds all information related to a language.

Type

array

Methods

info()

info(string $code) : null|array

Returns catalog's information for the given code.

Parameters

string $code

language code. e.g. en, en-us, etc

Returns

null|array —

Null if not found

languagesList()

languagesList(boolean $full, boolean $sort) : void

Gets a list of languages suitable for select boxes.

Parameters

boolean $full

Set to true to return the entire list of languages (from catalog). Set to false (by default) to get a list of installed languages

boolean $sort

Sort languages alphabetically if set to true (by default).

flagsList()

flagsList() : array

Gets a list of counties flags suitable for select boxes.

Returns

array