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

extends abstract class Phalcon\Validation\Validator implements Phalcon\Validation\ValidatorInterface Source on GitHub Validates that a value is between an inclusive range of two values. For a value x, the test is passed if minimum<=x<=maximum. use Phalcon\Validation\Validator\Between; $validator->add('price', new Between([ 'minimum' => 0, 'maximum' => 100, 'message' => 'The price must be between 0 and 100' ])); $validator->add(['price', 'amount'], new Be

Validation\Validator\Confirmation

extends abstract class Phalcon\Validation\Validator implements Phalcon\Validation\ValidatorInterface Source on GitHub Checks that two values have the same value use Phalcon\Validation\Validator\Confirmation; $validator->add('password', new Confirmation([ 'message' => 'Password doesn\'t match confirmation', 'with' => 'confirmPassword' ])); $validator->add(['password', 'email'], new Confirmation([ 'message' => [ 'password' => 'Password doesn\'t match

Validation\Validator\CreditCard

extends abstract class Phalcon\Validation\Validator implements Phalcon\Validation\ValidatorInterface Source on GitHub Checks if a value has a valid credit card number use Phalcon\Validation\Validator\CreditCard as CreditCardValidator; $validator->add('creditcard', new CreditCardValidator([ 'message' => 'The credit card number is not valid' ])); $validator->add(['creditcard', 'secondCreditCard'], new CreditCardValidator([ 'message' => [ 'creditcard' => 'The

Validation\Validator\Confirmation::validate

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

Validation\Validator\Between::validate

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

Validation\Validator\Alpha::validate

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

Validation\ValidatorInterface::validate

abstract public validate (Phalcon\Validation $validation, mixed $attribute) ...

Validation\Validator\Alpha

extends abstract class Phalcon\Validation\Validator implements Phalcon\Validation\ValidatorInterface Source on GitHub Check for alphabetic character(s) use Phalcon\Validation\Validator\Alpha as AlphaValidator; $validator->add('username', new AlphaValidator([ 'message' => ':field must contain only letters' ])); $validator->add(['username', 'name'], new AlphaValidator([ 'message' => [ 'username' => 'username must contain only letters', 'name' =>