xPDOGenerator.outputClasses
Last updated not available | 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
$194 per month—let's make that $500!
Learn morexPDOGenerator::outputClasses¶
Writes the generated PSR-4 PHP class files for the parsed schema into the given directory. $update controls which files are rewritten (0 = none, 1 = platform classes only, 2 = all), and $regenerate forces regeneration.
Syntax¶
boolean outputClasses (string $path, [integer $update = 1], [integer $regenerate = 0], [string $namespacePrefix = ''])
Example¶
$generator->outputClasses(MODX_CORE_PATH . 'components/mypackage/model/', 2, 0, 'MyVendor\\MyPackage\\');
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
$194 per month—let's make that $500!
Learn more










