Method |
Description |
|
__construct ( $language = null, $country = null ) |
|
|
__toString ( ) : string |
|
|
addChild ( Localization $child ) |
Adds a new child localization. |
|
findLocalization ( string $localization ) : Localization | null |
|
|
getAllLocalizations ( ) : Localization[] |
Returns a list of all localizations and sublocalizations. |
|
getChildren ( ) : Localization[] |
Returns the children of the localization. |
|
getCountry ( ) : string |
Returns the country of this localization. |
|
getLanguage ( ) : string |
Returns the language of this localization. |
|
getLocale ( string $format = self::UNDERSCORE ) : string |
Returns the localization code, which is a combination of the language and the country in a specific format. |
|
getLocalization ( string $delimiter = '_' ) : string |
Returns the localization code, which is a combination of the language and the country. |
|
getParent ( ) : Localization |
Returns the parent of this localization. |
|
getShadow ( ) : string |
Returns how to handle shadow pages for this localization. |
|
isDefault ( ) : boolean |
Returns if this localization is the default one. |
|
isXDefault ( ) : boolean |
Returns if this localization is the x-default one. |
|
jsonSerialize ( ) |
|
|
setChildren ( Localization[] $children ) |
Sets the children of the localization. |
|
setCountry ( string $country ) |
Sets the country of this localization. |
|
setDefault ( boolean $default ) |
Sets if this localization is the default one. |
|
setLanguage ( string $language ) |
Sets the language of this localization. |
|
setParent ( Localization $parent ) |
Sets the parent of this localization. |
|
setShadow ( string $shadow ) |
Sets how to handle shadow pages for this localization. |
|
setXDefault ( boolean $xDefault ) |
Sets if this localization is the x-default one. |
|
toArray ( $depth = null ) |
|
|