Validation\Validator\File::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\File

extends abstract class Phalcon\Validation\Validator implements Phalcon\Validation\ValidatorInterface Source on GitHub Checks if a value has a correct file use Phalcon\Validation\Validator\File as FileValidator; $validator->add('file', new FileValidator([ 'maxSize' => '2M', 'messageSize' => ':field exceeds the max filesize (:max)', 'allowedTypes' => array('image/jpeg', 'image/png'), 'messageType' => 'Allowed file types are :types', 'maxResolution' =>

Validation\Validator\ExclusionIn::validate

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

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\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\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::validate

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