xPDO.getCriteria
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
$185 per month—let's make that $500!
Learn morexPDO::getCriteria¶
Converts a predefined criteria definition (declared on a class) into an xPDO\Om\xPDOCriteria instance. The $type argument selects which predefined criteria to load — by convention 'object' and 'collection' are used for retrieving a single instance and multiple instances.
Syntax¶
xPDO\Om\xPDOCriteria|null getCriteria (string $className, [string $type = null], [boolean|integer $cacheFlag = true])
Example¶
$criteria = $xpdo->getCriteria('modResource', 'collection');
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
$185 per month—let's make that $500!
Learn more










