| Next revision | Previous revision |
| scriptlog:lib:core:i18nmanager [2026/09/26 09:09] – admin admin | scriptlog:lib:core:i18nmanager [2026/09/26 09:34] (current) – admin admin |
|---|
| //None.// | //None.// |
| |
| ======= Properties (4) ======= | ======= Properties (8) ======= |
| |
| ^ Visibility ^ Type ^ Name ^ Default ^ Line ^ | ^ Visibility ^ Type ^ Name ^ Default ^ Line ^ |
| | ''private static'' | ''static'' | ''$instance'' | ''null;'' | 11 | | | ''private static'' | ''static'' | ''$instance'' | ''null'' | 11 | |
| | ''private'' | ''(untyped)'' | ''$translations'' | ''[];'' | 13 | | | ''private'' | ''(untyped)'' | ''$locale'' | | 12 | |
| | ''private'' | ''(untyped)'' | ''$initialized'' | ''false;'' | 17 | | | ''private'' | ''(untyped)'' | ''$translations'' | ''[]'' | 13 | |
| | ''private'' | ''(untyped)'' | ''$dirCache'' | ''[];'' | 18 | | | ''private'' | ''(untyped)'' | ''$detector'' | | 14 | |
| | | ''private'' | ''(untyped)'' | ''$loader'' | | 15 | |
| | | ''private'' | ''(untyped)'' | ''$router'' | | 16 | |
| | | ''private'' | ''(untyped)'' | ''$initialized'' | ''false'' | 17 | |
| | | ''private'' | ''(untyped)'' | ''$dirCache'' | ''[]'' | 18 | |
| |
| ======= Methods (22) ======= | ======= Methods (22) ======= |
| |
| ^ Visibility ^ Method ^ Summary ^ Line ^ | ^ Visibility ^ Method ^ Summary ^ Line ^ |
| | public static | ''getInstance()'' | (undocumented) | 20 | | | public static | ''getInstance()'' | (undocumented) | 20 | |
| | public static | ''resetInstance()'' | (undocumented) | 28 | | | public static | ''resetInstance()'' | (undocumented) | 28 | |
| | private | ''__construct()'' | (undocumented) | 33 | | | private | ''__construct()'' | (undocumented) | 33 | |
| | public | ''initialize()'' | (undocumented) | 37 | | | public | ''initialize()'' | (undocumented) | 37 | |
| | public | ''initializeWithSettings()'' | (undocumented) | 53 | | | public | ''initializeWithSettings()'' | (undocumented) | 53 | |
| | public | ''t()'' | @SuppressWarnings(PHPMD.ElseExpression) | 70 | | | public | ''t()'' | | 70 | |
| | private | ''loadFromJsonFallback()'' | (undocumented) | 100 | | | private | ''loadFromJsonFallback()'' | (undocumented) | 100 | |
| | public | ''setLocale()'' | (undocumented) | 118 | | | public | ''setLocale()'' | (undocumented) | 118 | |
| | public | ''getLocale()'' | (undocumented) | 135 | | | public | ''getLocale()'' | (undocumented) | 135 | |
| | public | ''getAvailableLocales()'' | (undocumented) | 143 | | | public | ''getAvailableLocales()'' | (undocumented) | 143 | |
| | public | ''isRtl()'' | (undocumented) | 151 | | | public | ''isRtl()'' | (undocumented) | 151 | |
| | public | ''getLanguageDirection()'' | (undocumented) | 156 | | | public | ''getLanguageDirection()'' | (undocumented) | 156 | |
| | public | ''setLanguageDirection()'' | (undocumented) | 178 | | | public | ''setLanguageDirection()'' | (undocumented) | 178 | |
| | public | ''url()'' | (undocumented) | 183 | | | public | ''url()'' | (undocumented) | 183 | |
| | public | ''getLoader()'' | (undocumented) | 191 | | | public | ''getLoader()'' | (undocumented) | 191 | |
| | public | ''getRouter()'' | (undocumented) | 199 | | | public | ''getRouter()'' | (undocumented) | 199 | |
| | public | ''getDetector()'' | (undocumented) | 207 | | | public | ''getDetector()'' | (undocumented) | 207 | |
| | public | ''isInitialized()'' | (undocumented) | 215 | | | public | ''isInitialized()'' | (undocumented) | 215 | |
| | private | ''interpolate()'' | (undocumented) | 220 | | | private | ''interpolate()'' | (undocumented) | 220 | |
| | private | ''__clone()'' | (undocumented) | 229 | | | private | ''__clone()'' | (undocumented) | 229 | |
| | public | ''__wakeup()'' | (undocumented) | 233 | | | public | ''__wakeup()'' | (undocumented) | 233 | |
| | public | ''__unserialize()'' | (undocumented) | 238 | | | public | ''__unserialize()'' | (undocumented) | 238 | |
| |
| |
| //lines 53–67 (15)// | //lines 53–67 (15)// |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$settings'' | ''array'' | //required// | //none// | | | ''$settings'' | ''array'' | //required// | //none// | |
| |
| **Returns:** ''void'' | **Returns:** ''void'' |
| //lines 70–98 (29)// | //lines 70–98 (29)// |
| |
| @SuppressWarnings(PHPMD.ElseExpression) | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | | ''$key'' | ''string'' | //required// | //none// | |
| ^ Parameter ^ Type ^ Default ^ Description ^ | | ''$params'' | ''array'' | ''[]'' | //none// | |
| | ''$key'' | ''string'' | //required// | //none// | | | ''$locale'' | ''?string'' | ''null'' | //none// | |
| | ''$params'' | ''array'' | ''[]'' | //none// | | |
| | ''$locale'' | ''?string'' | ''null'' | //none// | | |
| |
| **Returns:** ''string'' | **Returns:** ''string'' |
| //lines 100–116 (17)// | //lines 100–116 (17)// |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$key'' | ''string'' | //required// | //none// | | | ''$key'' | ''string'' | //required// | //none// | |
| | ''$locale'' | ''string'' | //required// | //none// | | | ''$locale'' | ''string'' | //required// | //none// | |
| |
| **Returns:** ''?string'' | **Returns:** ''?string'' |
| //lines 118–133 (16)// | //lines 118–133 (16)// |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$locale'' | ''string'' | //required// | //none// | | | ''$locale'' | ''string'' | //required// | //none// | |
| |
| **Returns:** ''bool'' | **Returns:** ''bool'' |
| //lines 178–181 (4)// | //lines 178–181 (4)// |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$direction'' | ''string'' | //required// | //none// | | | ''$direction'' | ''string'' | //required// | //none// | |
| |
| **Returns:** ''void'' | **Returns:** ''void'' |
| //lines 183–189 (7)// | //lines 183–189 (7)// |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$path'' | ''string'' | //required// | //none// | | | ''$path'' | ''string'' | //required// | //none// | |
| | ''$locale'' | ''?string'' | ''null'' | //none// | | | ''$locale'' | ''?string'' | ''null'' | //none// | |
| |
| **Returns:** ''string'' | **Returns:** ''string'' |
| //lines 220–227 (8)// | //lines 220–227 (8)// |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$text'' | ''string'' | //required// | //none// | | | ''$text'' | ''string'' | //required// | //none// | |
| | ''$params'' | ''array'' | //required// | //none// | | | ''$params'' | ''array'' | //required// | //none// | |
| |
| **Returns:** ''string'' | **Returns:** ''string'' |
| //lines 238–241 (4)// | //lines 238–241 (4)// |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$_data'' | ''array'' | //required// | //none// | | | ''$_data'' | ''array'' | //required// | //none// | |
| |
| **Returns:** ''void'' | **Returns:** ''void'' |
| ======= Imports ======= | ======= Imports ======= |
| |
| ^ Alias ^ Fully-qualified name ^ | ^ Alias ^ Fully-qualified name ^ |
| | ''LanguageDao'' | [[scriptlog:lib:dao:languagedao|''Scriptlog\Dao\LanguageDao'']] | | | ''LanguageDao'' | [[scriptlog:lib:dao:languagedao|''Scriptlog\Dao\LanguageDao'']] | |
| |
| |