SpecialImportTranslations Class Reference
[Special pages of Translate extension]

Special page to import Gettext (.po) files exported using Translate extension. More...

List of all members.

Public Member Functions

 __construct ()
 Set up and fill some dependencies.
 execute ($parameters)
 Special page entry point.

Protected Member Functions

 checkError ($msg)
 Checks for error state from the return value of loadFile and parseFile functions.
 outputForm ()
 Constructs and outputs file input form with supported methods.
 loadFile (&$filedata)
 Try to get the file data from any of the supported methods.
 setCachedData ($data)
 getCachedData ()
 deleteCachedData ()

Detailed Description

Special page to import Gettext (.po) files exported using Translate extension.

Does not support generic Gettext files.

Definition at line 17 of file SpecialImportTranslations.php.


Constructor & Destructor Documentation

SpecialImportTranslations::__construct (  ) 

Set up and fill some dependencies.

Definition at line 21 of file SpecialImportTranslations.php.


Member Function Documentation

SpecialImportTranslations::checkError ( msg  )  [protected]

Checks for error state from the return value of loadFile and parseFile functions.

Prints the error and the form and returns true if there is an error. Returns false and does nothing if there is no error.

Parameters:
$msg array
Returns:
bool

Definition at line 105 of file SpecialImportTranslations.php.

Referenced by execute().

Here is the call graph for this function:

SpecialImportTranslations::deleteCachedData (  )  [protected]

Definition at line 232 of file SpecialImportTranslations.php.

Referenced by execute().

SpecialImportTranslations::execute ( parameters  ) 

Special page entry point.

Proceed to loading and parsing if possible

Todo:
: use a Status object instead?

Definition at line 28 of file SpecialImportTranslations.php.

Here is the call graph for this function:

SpecialImportTranslations::getCachedData (  )  [protected]

Definition at line 226 of file SpecialImportTranslations.php.

Referenced by execute().

SpecialImportTranslations::loadFile ( &$  filedata  )  [protected]

Try to get the file data from any of the supported methods.

Parameters:
$filedata 
Returns:
array

Definition at line 162 of file SpecialImportTranslations.php.

Referenced by execute().

SpecialImportTranslations::outputForm (  )  [protected]

Constructs and outputs file input form with supported methods.

Ugly but necessary form building ahead, ohoy

Definition at line 126 of file SpecialImportTranslations.php.

Referenced by checkError(), and execute().

Here is the call graph for this function:

SpecialImportTranslations::setCachedData ( data  )  [protected]

Definition at line 221 of file SpecialImportTranslations.php.

Referenced by execute().


The documentation for this class was generated from the following file:
Generated on Tue Oct 29 00:00:52 2013 for MediaWiki Translate Extension by  doxygen 1.6.3