xPDOValidator.validate
Last updated Apr 6th, 2019 | 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
$301 per month—let's make that $500!
Learn morexPDOValidator::validate¶
Executes validation against the object attached to this validator. May also accept an array of parameters to pass to the validation rule.
Syntax¶
API Doc: http://api.modxcms.com/xpdo/om/xPDOValidator.html#
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
$301 per month—let's make that $500!
Learn more