XarayaTranslationMemory
1.6
|
Public Member Functions | |
__construct () | |
EventHandler () | |
Public Member Functions inherited from TranslationBackend | |
__construct () | |
InitLanguage () | |
FindStrings () | |
LocateString ($locate=LOCATE_CURR) | |
FindProjectPath () | |
SaveString () | |
DeleteString () | |
DeleteProject ($projectID) | |
LoadProjectStrings () | |
GetProject () | |
Private Member Functions | |
Event_FindCustomString () | |
Event_EditString () | |
Event_DeleteString () | |
Event_DeleteProject () | |
Event_SaveNavigate () | |
Event_SetProject () | |
Event_SetRoot () | |
Event_SetLocale () | |
Event_ExportPack () | |
SyncToProject () | |
SyncToString () | |
WebBackend is a gateway between the WebGUI.php (HTML parts) and the TranslationBackend (logic).
This class handles the functions which move data from the web frontend to the translation backend functions on various events generated by the user. Data are passed by this class from web controls to the backend (from $_POST).
Definition at line 31 of file WebBackend.php.
WebBackend::__construct | ( | ) |
Create a new WebBackend for the GUI operations.
Definition at line 41 of file WebBackend.php.
|
private |
Delete a dead project and navigate to parent
Definition at line 219 of file WebBackend.php.
References TranslationBackend\DeleteProject(), TranslationBackend\FindStrings(), and SyncToProject().
Referenced by EventHandler().
|
private |
Delete a dead string and navigate somewhere logical
Definition at line 195 of file WebBackend.php.
References TranslationBackend\DeleteString(), TranslationBackend\FindStrings(), SyncToProject(), and SyncToString().
Referenced by EventHandler().
|
private |
Take a string for editing
Definition at line 177 of file WebBackend.php.
References TranslationBackend\FindStrings(), and SyncToString().
Referenced by EventHandler().
|
private |
Export the current locale to config-export-path and pack into a zip file
Definition at line 352 of file WebBackend.php.
References $CONFIG, $factory, TranslationProject\$LocaleIDCache, $proc, TranslationBackend\$xActiveRootID, SyncToProject(), and SyncToString().
Referenced by EventHandler().
|
private |
Find a custom entered string
Definition at line 157 of file WebBackend.php.
References TranslationBackend\FindStrings(), SyncToProject(), and SyncToString().
Referenced by EventHandler().
|
private |
Save the current string edit and/or navigate to next as user requested.
Definition at line 234 of file WebBackend.php.
References TranslationBackend\FindStrings(), LOCATE_CURR, LOCATE_NEXT, LOCATE_NEXTMISSING, TranslationBackend\LocateString(), TranslationBackend\SaveString(), and SyncToString().
Referenced by EventHandler().
|
private |
Set the selected locale and navigate back to its root project
Definition at line 339 of file WebBackend.php.
References TranslationBackend\$xOldLocaleID, TranslationBackend\InitLanguage(), and SyncToProject().
Referenced by EventHandler().
|
private |
Select another project from the project tree
Definition at line 300 of file WebBackend.php.
References TranslationBackend\FindStrings(), and SyncToProject().
Referenced by EventHandler().
|
private |
Sets the active root project to work on
Definition at line 317 of file WebBackend.php.
References SyncToProject().
Referenced by EventHandler().
WebBackend::EventHandler | ( | ) |
Handle events generated by the user on the GUI and move data from the GUI to the backend.
Definition at line 51 of file WebBackend.php.
References Event_DeleteProject(), Event_DeleteString(), Event_EditString(), Event_ExportPack(), Event_FindCustomString(), Event_SaveNavigate(), Event_SetLocale(), Event_SetProject(), Event_SetRoot(), and TranslationBackend\InitLanguage().
|
private |
Function to sync all controls to the current project
Definition at line 410 of file WebBackend.php.
References TranslationBackend\FindProjectPath(), TranslationBackend\FindStrings(), TranslationBackend\LoadProjectStrings(), and TranslationBackend\LocateString().
Referenced by Event_DeleteProject(), Event_DeleteString(), Event_ExportPack(), Event_FindCustomString(), Event_SetLocale(), Event_SetProject(), and Event_SetRoot().
|
private |
Function to sync all controls to the current string
Definition at line 446 of file WebBackend.php.
References TranslationBackend\FindProjectPath(), TranslationBackend\LoadProjectStrings(), and TranslationBackend\LocateString().
Referenced by Event_DeleteString(), Event_EditString(), Event_ExportPack(), Event_FindCustomString(), and Event_SaveNavigate().
WebBackend::$chkSearchSelects |
Array containing selected items in the search results area (checkboxes)
Definition at line 35 of file WebBackend.php.
WebBackend::$xBrowserHelper |
Suffix for the browser string editor field: md5 of the string, so browsers will offer the same history for the same strigns.
Definition at line 34 of file WebBackend.php.
WebBackend::$xStringStack |
Comma separated list of stacked (bookmarked) strings.
Definition at line 33 of file WebBackend.php.