xPDOGenerator.parseSchema
Last updated Mar 13th, 2019 | Page history | Improve this page | Report an issue
xPDOGenerator::parseSchema¶
Parses an XPDO XML schema and generates classes and map files from it.
Syntax¶
API Docs: http://api.modxcms.com/xpdo/om/xPDOGenerator.html#parseSchema
boolean parseSchema (string $schemaFile, [string $outputDir = ''], [boolean $compile = false])
Example¶
Generate the map and class files for an XML schema:
$manager = $xpdo->getManager();
$generator = $manager->getGenerator();
$generator->parseSchema('mypackage.mysql.schema.xml','/path/to/mypackage/model/');