xPDOGenerator.getDefault
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::getDefault¶
Returns the default value to use for a field definition, as configured in the generator. Used when emitting class and map files.
Syntax¶
mixed getDefault (mixed $value)
Example¶
$generator = $manager->getGenerator();
$default = $generator->getDefault('0');
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










