Scriptlog Docs

Scriptlog Documentation

Code reference for the Scriptlog codebase

User Tools

Site Tools


scriptlog:lib:service:translationservice

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
scriptlog:lib:service:translationservice [2026/09/26 09:09] – admin adminscriptlog:lib:service:translationservice [2026/09/26 09:34] (current) – admin admin
Line 16: Line 16:
 //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 |
  
  
Line 62: Line 65:
 //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''
Line 76: Line 79:
 //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''
Line 91: Line 94:
 //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''
Line 105: Line 108:
 //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''
Line 121: Line 124:
 //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''
Line 138: Line 141:
 //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''
Line 155: Line 158:
 //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''
Line 182: Line 185:
 //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''
Line 197: Line 200:
 //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''
Line 212: Line 215:
 //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''
Line 227: Line 230:
 //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''
Line 242: Line 245:
 //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''
Line 269: Line 272:
 //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''
Line 283: Line 286:
 //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''
Line 297: Line 300:
 //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''
Line 304: Line 307:
 ======= 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'']] |
  
  
scriptlog/lib/service/translationservice.1790413760.txt.gz · Last modified: by admin