Interface to all framework's validators
The Validator class contains static methods to test a value or a list of values against a validator, based just on the validator class path, the validator arguments and the value(s) to be validated.
Examples:
Located in /core/validation/Validator.class.php (line 67)
PHP2Go | --Validator
Registers a validator error
Clears all validation errors
Gets the collected error messages
Get the singleton of the Validator class
Validates a value against a given validator
The $path argument must contain the path to the validator class, using "dot path" notation.
Used by the forms API to perform validations on form fields
The FormField instance is passed by reference, along with the validator path and arguments. Some validators might change the value of the field.
Runs a validation on multiple values
The failed values are collected and returned through the 4th parameter, $wrongValues, that sould be passed by reference.
Returns TRUE only when the validation returned TRUE for all values.
Inherited From PHP2Go
PHP2Go::PHP2Go()
PHP2Go::equals()
PHP2Go::generateUniqueId()
PHP2Go::getClassName()
PHP2Go::getConfigVal()
PHP2Go::getLangVal()
PHP2Go::getObjectName()
PHP2Go::getParentName()
PHP2Go::hasDestructor()
PHP2Go::hashCode()
PHP2Go::isA()
PHP2Go::isSubclassOf()
PHP2Go::logError()
PHP2Go::raiseError()
PHP2Go::registerDestructor()
PHP2Go::registerShutdownFunc()
PHP2Go::retrieve()
PHP2Go::store()
PHP2Go::__toString()
Documentation generated on Sun, 07 Oct 2007 19:31:05 -0300 by phpDocumentor 1.3.2