Open Journal Systems
3.3.0
|
Public Member Functions | |
__construct ($argv=array()) | |
execute () | |
usage () | |
Data Fields | |
$command | |
$inputFile | |
$outputFile | |
$type | |
Data Fields inherited from CommandLineTool | |
$argv | |
$scriptName | |
CLI tool to output the SQL statements corresponding to an XML database schema.
Definition at line 19 of file XmlToSqlTool.inc.php.
XmlToSqlTool::__construct | ( | $argv = array() | ) |
Constructor.
$argv | array command-line arguments If specified, the first argument should be the file to parse |
Reimplemented from CommandLineTool.
Reimplemented in dbXMLtoSQL.
Definition at line 50 of file XmlToSqlTool.inc.php.
References CommandLineTool\$argv, and usage().
XmlToSqlTool::execute | ( | ) |
Parse an XML database file and output the corresponding SQL statements. See lib/pkp/dtd/xmlSchema.dtd for the format of the XML files.
Definition at line 102 of file XmlToSqlTool.inc.php.
References DBConnection\getConn(), and Config\getVar().
XmlToSqlTool::usage | ( | ) |
Print command usage information.
Reimplemented from CommandLineTool.
Definition at line 87 of file XmlToSqlTool.inc.php.
Referenced by __construct().
string XmlToSqlTool::$command |
command to execute (print|execute|upgrade)
Definition at line 31 of file XmlToSqlTool.inc.php.
string XmlToSqlTool::$inputFile |
XML file to parse
Definition at line 37 of file XmlToSqlTool.inc.php.
string XmlToSqlTool::$outputFile |
file to save SQL statements in
Definition at line 43 of file XmlToSqlTool.inc.php.
string XmlToSqlTool::$type |
type of file to parse (schema or data)
Definition at line 25 of file XmlToSqlTool.inc.php.