W3cubDocs

/Phalcon 2

Interface Phalcon\Mvc\Model\ValidatorInterface

Phalcon\Mvc\Model\ValidatorInterface initializer

Methods

abstract public array getMessages ()

Returns messages generated by the validator

abstract public boolean validate (Phalcon\Mvc\ModelInterface $record)

Executes the validator

© 2011–2016 Phalcon Framework Team
Licensed under the Creative Commons Attribution License 3.0.
https://docs.phalconphp.com/en/2.0.0/api/Phalcon_Mvc_Model_ValidatorInterface.html