xPDOGenerator.parseSchema
Last updated Apr 6th, 2019 | Page history | Improve this page | Report an issue
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$311 per month—let's make that $500!
Learn morexPDOGenerator::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/');
See Also¶
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$311 per month—let's make that $500!
Learn more