Abstract class Phalcon\Mvc\Model\Validator

implements Phalcon\Mvc\Model\ValidatorInterface

This is a base class for Phalcon\Mvc\Model validators

Methods

public __construct (array $options)

Phalcon\Mvc\Model\Validator constructor

protected appendMessage ()

Appends a message to the validator

public array getMessages ()

Returns messages generated by the validator

public array getOptions ()

Returns all the options from the validator

public mixed getOption ()

Returns an option

public boolean isSetOption ()

Check whether a option has been defined in the validator options

abstract public boolean validate (Phalcon\Mvc\ModelInterface $record) inherited from Phalcon\Mvc\Model\ValidatorInterface

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_Validator.html