WebBackend Class Reference

Inheritance diagram for WebBackend:

TranslationBackend List of all members.

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 33 of file WebBackend.php.

Public Member Functions

 __construct ()
 EventHandler ()

Public Attributes

 $xStringStack
 $xBrowserHelper
 $chkSearchSelects

Private Member Functions

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


Constructor & Destructor Documentation

WebBackend::__construct (  ) 

Create a new WebBackend for the GUI operations.

Reimplemented from TranslationBackend.

Definition at line 43 of file WebBackend.php.

References __construct().


Member Function Documentation

WebBackend::Event_DeleteProject (  )  [private]

Delete a dead project and navigate to parent

Definition at line 216 of file WebBackend.php.

References TranslationBackend::DeleteProject(), TranslationBackend::FindStrings(), and SyncToProject().

Referenced by EventHandler().

WebBackend::Event_DeleteString (  )  [private]

Delete a dead string and navigate somewhere logical

Definition at line 192 of file WebBackend.php.

References TranslationBackend::DeleteString(), TranslationBackend::FindStrings(), SyncToProject(), and SyncToString().

Referenced by EventHandler().

WebBackend::Event_EditString (  )  [private]

Take a string for editing

Definition at line 174 of file WebBackend.php.

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

Referenced by EventHandler().

WebBackend::Event_ExportPack (  )  [private]

Export the current locale to config-export-path and pack into a zip file

Definition at line 328 of file WebBackend.php.

References $CONFIG, TranslationProject::$LocaleIDCache, $proc, SyncToProject(), and SyncToString().

Referenced by EventHandler().

WebBackend::Event_FindCustomString (  )  [private]

Find a custom entered string

Definition at line 154 of file WebBackend.php.

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

Referenced by EventHandler().

WebBackend::Event_SaveNavigate (  )  [private]

Save the current string edit and/or navigate to next as user requested.

Definition at line 231 of file WebBackend.php.

References TranslationBackend::FindStrings(), TranslationBackend::LocateString(), TranslationBackend::SaveString(), and SyncToString().

Referenced by EventHandler().

WebBackend::Event_SetLocale (  )  [private]

Set the selected locale and navigate back to its root project

Definition at line 315 of file WebBackend.php.

References TranslationBackend::InitLanguage(), and SyncToProject().

Referenced by EventHandler().

WebBackend::Event_SetProject (  )  [private]

Select another project from the project tree

Definition at line 297 of file WebBackend.php.

References TranslationBackend::FindStrings(), and 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 52 of file WebBackend.php.

References Event_DeleteProject(), Event_DeleteString(), Event_EditString(), Event_ExportPack(), Event_FindCustomString(), Event_SaveNavigate(), Event_SetLocale(), Event_SetProject(), and TranslationBackend::InitLanguage().

WebBackend::SyncToProject (  )  [private]

Function to sync all controls to the current project

Definition at line 387 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(), and Event_SetProject().

WebBackend::SyncToString (  )  [private]

Function to sync all controls to the current string

Definition at line 423 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().


Member Data Documentation

WebBackend::$chkSearchSelects

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

Definition at line 37 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 36 of file WebBackend.php.

WebBackend::$xStringStack

Comma separated list of stacked (bookmarked) strings.

Definition at line 35 of file WebBackend.php.


The documentation for this class was generated from the following file:
Generated on Tue Mar 20 00:42:40 2007 for XarayaTranslationMemory by  doxygen 1.4.7