MagicExport Class Reference

Maintenance class for the fast export of special page aliases and magic words. More...

List of all members.

Public Member Functions

 __construct ()
 execute ()

Protected Member Functions

 openHandles ()
 Iterate through all groups, loading current data from the existing extension and opening message files for message output.
 readHeader ($file)
 writeHeaders ()
 Write the opening of the files for each output file handle.
 writeFiles ()
 Itterate through available languages, loading and parsing the data message from the MediaWiki namespace and writing the data to its output file handle.
 writeFooters ()
 Do whatever needs doing after writing the primary content.
 closeHandles ()
 Close all output file handles.

Protected Attributes

 $type
 $target
 $handles = array()
 $messagesOld = array()

Detailed Description

Maintenance class for the fast export of special page aliases and magic words.

Definition at line 17 of file magic-export.php.


Constructor & Destructor Documentation

MagicExport::__construct (  ) 

Definition at line 24 of file magic-export.php.


Member Function Documentation

MagicExport::closeHandles (  )  [protected]

Close all output file handles.

Definition at line 288 of file magic-export.php.

Referenced by execute().

MagicExport::execute (  ) 

Definition at line 41 of file magic-export.php.

Here is the call graph for this function:

MagicExport::openHandles (  )  [protected]

Iterate through all groups, loading current data from the existing extension and opening message files for message output.

  • If the group does not define a special page alias file or magic words file, or that file does not exist, it is ignored silently.
  • If the file does contain a data array (e.g. $aliases) then the program exits.

Definition at line 68 of file magic-export.php.

Referenced by execute().

Here is the call graph for this function:

MagicExport::readHeader ( file  )  [protected]

Definition at line 133 of file magic-export.php.

Referenced by openHandles().

MagicExport::writeFiles (  )  [protected]

Itterate through available languages, loading and parsing the data message from the MediaWiki namespace and writing the data to its output file handle.

Definition at line 179 of file magic-export.php.

Referenced by execute().

Here is the call graph for this function:

MagicExport::writeFooters (  )  [protected]

Do whatever needs doing after writing the primary content.

Definition at line 281 of file magic-export.php.

Referenced by execute().

MagicExport::writeHeaders (  )  [protected]

Write the opening of the files for each output file handle.

Definition at line 150 of file magic-export.php.

Referenced by execute().


Member Data Documentation

MagicExport::$handles = array() [protected]

Definition at line 21 of file magic-export.php.

MagicExport::$messagesOld = array() [protected]

Definition at line 22 of file magic-export.php.

MagicExport::$target [protected]

Definition at line 19 of file magic-export.php.

MagicExport::$type [protected]

Definition at line 18 of file magic-export.php.


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