xPDOValidator.validate
Last updated Oct 17th, 2026 | 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 morexPDOValidator::validate¶
Executes validation against the object attached to this validator. The optional array may contain keys stopOnFail and stopOnRuleFail to control whether validation stops on the first failing column or rule.
Syntax¶
boolean validate ([array $parameters = array()])
Example¶
Check to see if any validation errors occurred.
$validator = $obj->getValidator();
if (!$validator->validate()) {
echo 'Errors occurred!';
}
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










