Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
XmlToSqlTool Class Reference
Inheritance diagram for XmlToSqlTool:
CommandLineTool dbXMLtoSQL

Public Member Functions

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

Public Attributes

 $command
 
 $inputFile
 
 $outputFile
 
 $type
 
- Public Attributes inherited from CommandLineTool
 $argv
 
 $scriptName
 

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

XmlToSqlTool::usage ( )

Print command usage information.

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

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

Constructor.

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

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

Member Data Documentation

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.


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