Validation\Validator\Alnum

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

Validation\Validator\Alnum::validate

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

Validation\Validator::setOption

public setOption (mixed $key, mixed $value) Sets an option in the validator

Validation\Validator::isSetOption

public isSetOption (mixed $key) Checks if an option has been defined

Validation\ValidatorInterface::getOption

abstract public getOption (mixed $key, [mixed $defaultValue]) ...

Validation\ValidatorInterface::hasOption

abstract public hasOption (mixed $key) ...

Validation\ValidatorInterface

Source on GitHub Methods abstract public hasOption (mixed $key) ... abstract public getOption (mixed $key, [mixed $defaultValue]) ... abstract public validate (Phalcon\Validation $validation, mixed $attribute) ...

Validation\Validator::validate

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

Validation\Message\Group::offsetUnset

public offsetUnset (string $index) Removes a message from the list unset($message['database']);

Validation\Message\Group::valid

public valid () Check if the current message in the iterator is valid