| Next revision | Previous revision |
| scriptlog:lib:service:translationservice [2026/09/26 09:09] – admin admin | scriptlog:lib:service:translationservice [2026/09/26 09:34] (current) – admin admin |
|---|
| //None.// | //None.// |
| |
| ======= Properties (0) ======= | ======= Properties (3) ======= |
| |
| //None declared.// | ^ Visibility ^ Type ^ Name ^ Default ^ Line ^ |
| | | ''private'' | ''(untyped)'' | ''$translationDao'' | | 14 | |
| | | ''private'' | ''(untyped)'' | ''$languageDao'' | | 15 | |
| | | ''private'' | ''(untyped)'' | ''$loader'' | | 16 | |
| |
| ======= Methods (18) ======= | ======= Methods (18) ======= |
| |
| ^ Visibility ^ Method ^ Summary ^ Line ^ | ^ Visibility ^ Method ^ Summary ^ Line ^ |
| | public | ''__construct()'' | (undocumented) | 18 | | | public | ''__construct()'' | (undocumented) | 18 | |
| | public | ''createTranslation()'' | (undocumented) | 25 | | | public | ''createTranslation()'' | (undocumented) | 25 | |
| | public | ''updateTranslation()'' | (undocumented) | 52 | | | public | ''updateTranslation()'' | (undocumented) | 52 | |
| | public | ''deleteTranslation()'' | (undocumented) | 70 | | | public | ''deleteTranslation()'' | (undocumented) | 70 | |
| | public | ''getTranslations()'' | (undocumented) | 83 | | | public | ''getTranslations()'' | (undocumented) | 83 | |
| | public | ''getTranslationsByContext()'' | (undocumented) | 93 | | | public | ''getTranslationsByContext()'' | (undocumented) | 93 | |
| | public | ''searchTranslations()'' | (undocumented) | 103 | | | public | ''searchTranslations()'' | (undocumented) | 103 | |
| | public | ''countAll()'' | (undocumented) | 113 | | | public | ''countAll()'' | (undocumented) | 113 | |
| | public | ''countAllTranslations()'' | (undocumented) | 122 | | | public | ''countAllTranslations()'' | (undocumented) | 122 | |
| | public | ''getAllTranslations()'' | (undocumented) | 127 | | | public | ''getAllTranslations()'' | (undocumented) | 127 | |
| | public | ''countByContext()'' | (undocumented) | 132 | | | public | ''countByContext()'' | (undocumented) | 132 | |
| | public | ''countSearch()'' | (undocumented) | 141 | | | public | ''countSearch()'' | (undocumented) | 141 | |
| | public | ''importFromArray()'' | (undocumented) | 150 | | | public | ''importFromArray()'' | (undocumented) | 150 | |
| | public | ''exportToArray()'' | (undocumented) | 185 | | | public | ''exportToArray()'' | (undocumented) | 185 | |
| | public | ''getContexts()'' | (undocumented) | 195 | | | public | ''getContexts()'' | (undocumented) | 195 | |
| | public | ''regenerateCache()'' | (undocumented) | 200 | | | public | ''regenerateCache()'' | (undocumented) | 200 | |
| | public | ''getTranslationCount()'' | (undocumented) | 206 | | | public | ''getTranslationCount()'' | (undocumented) | 206 | |
| | private | ''validateTranslationData()'' | (undocumented) | 216 | | | private | ''validateTranslationData()'' | (undocumented) | 216 | |
| |
| |
| //lines 25–50 (26)// | //lines 25–50 (26)// |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$data'' | ''array'' | //required// | //none// | | | ''$data'' | ''array'' | //required// | //none// | |
| |
| **Returns:** ''int'' | **Returns:** ''int'' |
| //lines 52–68 (17)// | //lines 52–68 (17)// |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$id'' | ''int'' | //required// | //none// | | | ''$id'' | ''int'' | //required// | //none// | |
| | ''$data'' | ''array'' | //required// | //none// | | | ''$data'' | ''array'' | //required// | //none// | |
| |
| **Returns:** ''void'' | **Returns:** ''void'' |
| //lines 70–81 (12)// | //lines 70–81 (12)// |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$id'' | ''int'' | //required// | //none// | | | ''$id'' | ''int'' | //required// | //none// | |
| |
| **Returns:** ''void'' | **Returns:** ''void'' |
| //lines 83–91 (9)// | //lines 83–91 (9)// |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$langCode'' | ''string'' | //required// | //none// | | | ''$langCode'' | ''string'' | //required// | //none// | |
| | ''$page'' | ''int'' | ''1'' | //none// | | | ''$page'' | ''int'' | ''1'' | //none// | |
| | ''$perPage'' | ''int'' | ''50'' | //none// | | | ''$perPage'' | ''int'' | ''50'' | //none// | |
| |
| **Returns:** ''array'' | **Returns:** ''array'' |
| //lines 93–101 (9)// | //lines 93–101 (9)// |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$langCode'' | ''string'' | //required// | //none// | | | ''$langCode'' | ''string'' | //required// | //none// | |
| | ''$context'' | ''string'' | //required// | //none// | | | ''$context'' | ''string'' | //required// | //none// | |
| | ''$page'' | ''int'' | ''1'' | //none// | | | ''$page'' | ''int'' | ''1'' | //none// | |
| | ''$perPage'' | ''int'' | ''50'' | //none// | | | ''$perPage'' | ''int'' | ''50'' | //none// | |
| |
| **Returns:** ''array'' | **Returns:** ''array'' |
| //lines 103–111 (9)// | //lines 103–111 (9)// |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$langCode'' | ''string'' | //required// | //none// | | | ''$langCode'' | ''string'' | //required// | //none// | |
| | ''$query'' | ''string'' | //required// | //none// | | | ''$query'' | ''string'' | //required// | //none// | |
| | ''$page'' | ''int'' | ''1'' | //none// | | | ''$page'' | ''int'' | ''1'' | //none// | |
| | ''$perPage'' | ''int'' | ''50'' | //none// | | | ''$perPage'' | ''int'' | ''50'' | //none// | |
| |
| **Returns:** ''array'' | **Returns:** ''array'' |
| //lines 113–120 (8)// | //lines 113–120 (8)// |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$langCode'' | ''string'' | //required// | //none// | | | ''$langCode'' | ''string'' | //required// | //none// | |
| |
| **Returns:** ''int'' | **Returns:** ''int'' |
| //lines 127–130 (4)// | //lines 127–130 (4)// |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$page'' | ''int'' | ''1'' | //none// | | | ''$page'' | ''int'' | ''1'' | //none// | |
| | ''$perPage'' | ''int'' | ''50'' | //none// | | | ''$perPage'' | ''int'' | ''50'' | //none// | |
| |
| **Returns:** ''array'' | **Returns:** ''array'' |
| //lines 132–139 (8)// | //lines 132–139 (8)// |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$langCode'' | ''string'' | //required// | //none// | | | ''$langCode'' | ''string'' | //required// | //none// | |
| | ''$context'' | ''string'' | //required// | //none// | | | ''$context'' | ''string'' | //required// | //none// | |
| |
| **Returns:** ''int'' | **Returns:** ''int'' |
| //lines 141–148 (8)// | //lines 141–148 (8)// |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$langCode'' | ''string'' | //required// | //none// | | | ''$langCode'' | ''string'' | //required// | //none// | |
| | ''$query'' | ''string'' | //required// | //none// | | | ''$query'' | ''string'' | //required// | //none// | |
| |
| **Returns:** ''int'' | **Returns:** ''int'' |
| //lines 150–183 (34)// | //lines 150–183 (34)// |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$langCode'' | ''string'' | //required// | //none// | | | ''$langCode'' | ''string'' | //required// | //none// | |
| | ''$translations'' | ''array'' | //required// | //none// | | | ''$translations'' | ''array'' | //required// | //none// | |
| |
| **Returns:** ''int'' | **Returns:** ''int'' |
| //lines 185–193 (9)// | //lines 185–193 (9)// |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$langCode'' | ''string'' | //required// | //none// | | | ''$langCode'' | ''string'' | //required// | //none// | |
| |
| **Returns:** ''array'' | **Returns:** ''array'' |
| //lines 200–204 (5)// | //lines 200–204 (5)// |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$langCode'' | ''string'' | //required// | //none// | | | ''$langCode'' | ''string'' | //required// | //none// | |
| |
| **Returns:** ''void'' | **Returns:** ''void'' |
| //lines 206–214 (9)// | //lines 206–214 (9)// |
| |
| ^ Parameter ^ Type ^ Default ^ Description ^ | ^ Parameter ^ Type ^ Default ^ Description ^ |
| | ''$langCode'' | ''string'' | //required// | //none// | | | ''$langCode'' | ''string'' | //required// | //none// | |
| |
| **Returns:** ''int'' | **Returns:** ''int'' |
| //lines 216–233 (18)// | //lines 216–233 (18)// |
| |
| ^ 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 ^ |
| | ''ServiceException'' | [[scriptlog:lib:core:serviceexception|''Scriptlog\Core\ServiceException'']] | | | ''ServiceException'' | [[scriptlog:lib:core:serviceexception|''Scriptlog\Core\ServiceException'']] | |
| | ''TranslationLoader'' | [[scriptlog:lib:core:translationloader|''Scriptlog\Core\TranslationLoader'']] | | | ''TranslationLoader'' | [[scriptlog:lib:core:translationloader|''Scriptlog\Core\TranslationLoader'']] | |
| | ''LanguageDao'' | [[scriptlog:lib:dao:languagedao|''Scriptlog\Dao\LanguageDao'']] | | | ''LanguageDao'' | [[scriptlog:lib:dao:languagedao|''Scriptlog\Dao\LanguageDao'']] | |
| | ''TranslationDao'' | [[scriptlog:lib:dao:translationdao|''Scriptlog\Dao\TranslationDao'']] | | | ''TranslationDao'' | [[scriptlog:lib:dao:translationdao|''Scriptlog\Dao\TranslationDao'']] | |
| |
| |