Validation\Validator\File::validate

public validate (Phalcon\Validation $validation, mixed $field) Executes the validation

Validation\Validator\Identical::validate

public validate (Phalcon\Validation $validation, mixed $field) Executes the validation

Validation\Validator\File::isAllowEmpty

public isAllowEmpty (Phalcon\Validation $validation, mixed $field) Check on empty

Validation\Validator\ExclusionIn::validate

public validate (Phalcon\Validation $validation, mixed $field) Executes the validation

Validation\Validator\Email

extends abstract class Phalcon\Validation\Validator implements Phalcon\Validation\ValidatorInterface Source on GitHub Checks if a value has a correct e-mail format use Phalcon\Validation\Validator\Email as EmailValidator; $validator->add('email', new EmailValidator([ 'message' => 'The e-mail is not valid' ])); $validator->add(['email', 'anotherEmail'], new EmailValidator([ 'message' => [ 'email' => 'The e-mail is not valid', 'anotherEmail' => '

Validation\Validator\ExclusionIn

extends abstract class Phalcon\Validation\Validator implements Phalcon\Validation\ValidatorInterface Source on GitHub Check if a value is not included into a list of values use Phalcon\Validation\Validator\ExclusionIn; $validator->add('status', new ExclusionIn([ 'message' => 'The status must not be A or B', 'domain' => ['A', 'B'] ])); $validator->add(['status', 'type'], new ExclusionIn([ 'message' => [ 'status' => 'The status must not be A or B',

Validation\Validator\Email::validate

public validate (Phalcon\Validation $validation, mixed $field) Executes the validation

Validation\Validator\Digit::validate

public validate (Phalcon\Validation $validation, mixed $field) Executes the validation

Validation\Validator\Digit

extends abstract class Phalcon\Validation\Validator implements Phalcon\Validation\ValidatorInterface Source on GitHub Check for numeric character(s) use Phalcon\Validation\Validator\Digit as DigitValidator; $validator->add('height', new DigitValidator([ 'message' => ':field must be numeric' ])); $validator->add(['height', 'width'], new DigitValidator([ 'message' => [ 'height' => 'height must be numeric', 'width' => 'width must be numeric'

Validation\Validator\Date

extends abstract class Phalcon\Validation\Validator implements Phalcon\Validation\ValidatorInterface Source on GitHub Checks if a value is a valid date use Phalcon\Validation\Validator\Date as DateValidator; $validator->add('date', new DateValidator([ 'format' => 'd-m-Y', 'message' => 'The date is invalid' ])); $validator->add(['date','anotherDate'], new DateValidator([ 'format' => [ 'date' => 'd-m-Y', 'anotherDate' => 'Y-m-d' ],