XarayaTranslationMemory  1.6
Public Member Functions | Public Attributes | Private Member Functions | List of all members
WebBackend Class Reference
Inheritance diagram for WebBackend:
TranslationBackend

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 ()
 

Public Attributes

 $xStringStack
 
 $xBrowserHelper
 
 $chkSearchSelects
 
- Public Attributes inherited from TranslationBackend
 $Event
 
 $txtFindText
 
 $ddlSearchType
 
 $ddlFindPercent
 
 $ddlLocaleID
 
 $xOldLocaleID
 
 $xStringID
 
 $xProjectID
 
 $xActiveRootID
 
 $xDelStringID
 
 $txtEditString
 
 $Translations
 
 $LocatedString
 
 $LocatedProjects
 
 $SiblingProjects
 
 $ChildProjects
 
 $CurrentStrings
 
 $RootProjects
 

Private Member Functions

 Event_FindCustomString ()
 
 Event_EditString ()
 
 Event_DeleteString ()
 
 Event_DeleteProject ()
 
 Event_SaveNavigate ()
 
 Event_SetProject ()
 
 Event_SetRoot ()
 
 Event_SetLocale ()
 
 Event_ExportPack ()
 
 SyncToProject ()
 
 SyncToString ()
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ __construct()

WebBackend::__construct ( )

Create a new WebBackend for the GUI operations.

Definition at line 41 of file WebBackend.php.

Member Function Documentation

◆ Event_DeleteProject()

WebBackend::Event_DeleteProject ( )
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().

◆ Event_DeleteString()

WebBackend::Event_DeleteString ( )
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().

◆ Event_EditString()

WebBackend::Event_EditString ( )
private

Take a string for editing

Definition at line 177 of file WebBackend.php.

References TranslationBackend\FindStrings(), and SyncToString().

Referenced by EventHandler().

◆ Event_ExportPack()

WebBackend::Event_ExportPack ( )
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().

◆ Event_FindCustomString()

WebBackend::Event_FindCustomString ( )
private

Find a custom entered string

Definition at line 157 of file WebBackend.php.

References TranslationBackend\FindStrings(), SyncToProject(), and SyncToString().

Referenced by EventHandler().

◆ Event_SaveNavigate()

WebBackend::Event_SaveNavigate ( )
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().

◆ Event_SetLocale()

WebBackend::Event_SetLocale ( )
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().

◆ Event_SetProject()

WebBackend::Event_SetProject ( )
private

Select another project from the project tree

Definition at line 300 of file WebBackend.php.

References TranslationBackend\FindStrings(), and SyncToProject().

Referenced by EventHandler().

◆ Event_SetRoot()

WebBackend::Event_SetRoot ( )
private

Sets the active root project to work on

Definition at line 317 of file WebBackend.php.

References SyncToProject().

Referenced by EventHandler().

◆ 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().

◆ SyncToProject()

WebBackend::SyncToProject ( )
private

◆ SyncToString()

WebBackend::SyncToString ( )
private

Member Data Documentation

◆ $chkSearchSelects

WebBackend::$chkSearchSelects

Array containing selected items in the search results area (checkboxes)

Definition at line 35 of file WebBackend.php.

◆ $xBrowserHelper

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.

◆ $xStringStack

WebBackend::$xStringStack

Comma separated list of stacked (bookmarked) strings.

Definition at line 33 of file WebBackend.php.


The documentation for this class was generated from the following file: