Open Journal Systems  2.4.3
 All Classes Namespaces Functions Variables Groups Pages
XmlToSqlTool Class Reference
Inheritance diagram for XmlToSqlTool:
CommandLineTool dbXMLtoSQL

Public Member Functions

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

Additional Inherited Members

- Public Attributes inherited from CommandLineTool
 $argv
 

Detailed Description

CLI tool to output the SQL statements corresponding to an XML database schema.

Definition at line 19 of file XmlToSqlTool.inc.php.

Member Function Documentation

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 90 of file XmlToSqlTool.inc.php.

References DBConnection\getConn(), and Config\getVar().

XmlToSqlTool::usage ( )

Print command usage information.

Definition at line 75 of file XmlToSqlTool.inc.php.

Referenced by XmlToSqlTool().

XmlToSqlTool::XmlToSqlTool (   $argv = array())

Constructor.

Parameters
$argvarray command-line arguments If specified, the first argument should be the file to parse

Definition at line 38 of file XmlToSqlTool.inc.php.

References CommandLineTool\$argv, and usage().


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