xPDO.getCriteriaType
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::getCriteriaType¶
Returns the type of a given criteria value: 'object' when the criteria resolves to a single object (a primary key value or a compound key array), and 'collection' otherwise.
Syntax¶
string getCriteriaType (mixed $criteria)
Example¶
$type = $xpdo->getCriteriaType(42);
// 'object'
$type = $xpdo->getCriteriaType(array('name' => 'John'));
// '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










