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

- Public Attributes inherited from CommandLineTool

Detailed Description

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

Definition at line 19 of file

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::usage ( )

Print command usage information.

Definition at line 87 of file

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


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

Definition at line 50 of file

Member Data Documentation

string XmlToSqlTool::$command

command to execute (print|execute|upgrade)

Definition at line 31 of file

string XmlToSqlTool::$inputFile

XML file to parse

Definition at line 37 of file

string XmlToSqlTool::$outputFile

file to save SQL statements in

Definition at line 43 of file

string XmlToSqlTool::$type

type of file to parse (schema or data)

Definition at line 25 of file

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