Open Journal Systems  3.3.0
xmlEmailsToPo Class Reference
Inheritance diagram for xmlEmailsToPo:
CommandLineTool

Public Member Functions

 __construct ($argv=array())
 
 execute ()
 
 usage ()
 

Static Public Member Functions

static parseEmailFile ($filename, &$locale)
 

Protected Attributes

 $poFile
 
 $sourceXmlFile
 

Additional Inherited Members

- Data Fields inherited from CommandLineTool
 $argv
 
 $scriptName
 

Detailed Description

Definition at line 16 of file xmlEmailsToPo.php.

Constructor & Destructor Documentation

◆ __construct()

xmlEmailsToPo::__construct (   $argv = array())

Constructor

Reimplemented from CommandLineTool.

Definition at line 32 of file xmlEmailsToPo.php.

References CommandLineTool\$argv, and usage().

Member Function Documentation

◆ execute()

xmlEmailsToPo::execute ( )

Convert an XML locale file to a PO file.

Definition at line 92 of file xmlEmailsToPo.php.

References parseEmailFile().

◆ parseEmailFile()

static xmlEmailsToPo::parseEmailFile (   $filename,
$locale 
)
static

Parse a locale file into an array.

Parameters
$filenamestring Filename to locale file
Returns
array (key => message)

Definition at line 64 of file xmlEmailsToPo.php.

Referenced by execute().

◆ usage()

xmlEmailsToPo::usage ( )

Print command usage information.

Reimplemented from CommandLineTool.

Definition at line 54 of file xmlEmailsToPo.php.

Referenced by __construct().

Field Documentation

◆ $poFile

string xmlEmailsToPo::$poFile
protected

Name of target PO file

Definition at line 27 of file xmlEmailsToPo.php.

◆ $sourceXmlFile

string xmlEmailsToPo::$sourceXmlFile
protected

Name of source XML email file

Definition at line 21 of file xmlEmailsToPo.php.


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