Property | Type | Description | |
---|---|---|---|
$localeCollection | array |
The values are Locale objects, and the keys are these locale's tags. | |
$localeParentCollection | array |
"Searching" is done by the keys, which are locale tags. The key points to the value which is a parent Locale object. If it's not set, there is no parent for given locale, or no parent was searched before. |
Method | Description | |
---|---|---|
addLocale ( |
Adds a locale to the collection. | |
findBestMatchingLocale ( |
Returns Locale object which represents one of locales installed and which is most similar to the "template" Locale object given as parameter. | |
getParentLocaleOf ( |
Returns a parent Locale object of the locale provided. |
public findBestMatchingLocale ( |
||
$locale | The "template" locale to be matched | |
return | mixed | Existing Locale instance on success, NULL on failure |
public getParentLocaleOf ( |
||
$locale | The Locale to search parent for | |
return | mixed | Existing Locale instance or NULL on failure |
protected array |
||
return | array |
protected array |
||
return | array |