Mvc\Model\Validator\Numericality

extends abstract class Phalcon\Mvc\Model\Validator implements Phalcon\Mvc\Model\ValidatorInterface Source on GitHub Allows to validate if a field has a valid numeric format use Phalcon\Mvc\Model\Validator\Numericality as NumericalityValidator; class Products extends \Phalcon\Mvc\Model { public function validation() { $this->validate(new NumericalityValidator(array( "field" => 'price' ))); if ($this->validationHasFailed() == true) { return fal

Mvc\Model\Validator\Ip::VERSION_6

integer VERSION_6

Mvc\Model\Validator\Ip::VERSION_4

integer VERSION_4

Mvc\Model\Validator\Ip::validate

public validate (Phalcon\Mvc\EntityInterface $record) Executes the validator

Mvc\Model\Validator\Ip

extends abstract class Phalcon\Mvc\Model\Validator implements Phalcon\Mvc\Model\ValidatorInterface Source on GitHub Phalcon\Mvc\Model\Validator\IP Validates that a value is ipv4 address in valid range use Phalcon\Mvc\Model\Validator\Ip; class Data extends Phalcon\Mvc\Model { public function validation() { // Any pubic IP $this->validate(new IP(array( 'field' => 'server_ip', 'version' => IP::VERSION_4 | IP::VERSION_6, // v6 and

Mvc\Model\Validator\Inclusionin::validate

public validate (Phalcon\Mvc\EntityInterface $record) Executes validator

Mvc\Model\Validator\Inclusionin

extends abstract class Phalcon\Mvc\Model\Validator implements Phalcon\Mvc\Model\ValidatorInterface Source on GitHub Phalcon\Mvc\Model\Validator\InclusionIn Check if a value is included into a list of values use Phalcon\Mvc\Model\Validator\InclusionIn as InclusionInValidator; class Subscriptors extends \Phalcon\Mvc\Model { public function validation() { $this->validate(new InclusionInValidator(array( "field" => 'status', 'domain

Mvc\Model\Validator\Exclusionin::validate

public validate (Phalcon\Mvc\EntityInterface $record) Executes the validator

Mvc\Model\Validator\Exclusionin

extends abstract class Phalcon\Mvc\Model\Validator implements Phalcon\Mvc\Model\ValidatorInterface Source on GitHub Phalcon\Mvc\Model\Validator\ExclusionIn Check if a value is not included into a list of values use Phalcon\Mvc\Model\Validator\ExclusionIn as ExclusionInValidator; class Subscriptors extends \Phalcon\Mvc\Model { public function validation() { $this->validate(new ExclusionInValidator(array( 'field' => 'status', 'do

Mvc\Model\Validator\Email::validate

public validate (Phalcon\Mvc\EntityInterface $record) Executes the validator