Validation\Validator

implements Phalcon\Validation\ValidatorInterface Source on GitHub This is a base class for validators Methods public __construct ([array $options]) Phalcon\Validation\Validator constructor public isSetOption (mixed $key) Checks if an option has been defined public hasOption (mixed $key) Checks if an option is defined public getOption (mixed $key, [mixed $defaultValue]) Returns an option in the validator’s options Returns null if the option hasn’t set public setOption (mixed $key, mixed $value)

Validation\Message\Group::__set_state

public static Phalcon\Validation\Message\Group __set_state (array $group) Magic __set_state helps to re-build messages variable when exporting

Validation\Message\Group::valid

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

Validation\Message\Group::rewind

public rewind () Rewinds the internal iterator

Validation\Message\Group::offsetUnset

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

Validation\Message\Group::offsetSet

public offsetSet (int $index, Phalcon\Validation\Message $message) Sets an attribute using the array-syntax $messages[0] = new \Phalcon\Validation\Message('This is a message');

Validation\Message\Group::offsetGet

public Phalcon\Validation\Message offsetGet (int $index) Gets an attribute a message using the array syntax print_r($messages[0]);

Validation\Message\Group::offsetExists

public boolean offsetExists (int $index) Checks if an index exists var_dump(isset($message['database']));

Validation\Message\Group::next

public next () Moves the internal iteration pointer to the next position

Validation\Message\Group::key

public key () Returns the current position/key in the iterator