1.0 Doctrine_Validator
Doctrine Validator
This class is responsible for performing all validations on record properties
Method Summary
| Returns | Name | Description |
|---|---|---|
| integer | getStringLength | |
| Doctrine_Validator_Interface | getValidator | |
| boolean | hasErrors | |
| boolean | isValidType | |
| boolean | validateLength | |
| validateRecord |
Method Details
-
(integer) getStringLength($string)
Get length of passed string. Will use multibyte character functions if they exist
-
$name Name of the validator or the validator class name (Doctrine_Validator_Interface) getValidator($name)
Get a validator instance for the passed $name
-
(boolean) hasErrors()
Whether or not errors exist on this validator
Doctrine_Validator
-
$var Variable to validate $type Type of the variable expected (boolean) isValidType($var, $type)
Validate the type of the passed variable
-
$value Value to validate $type Type of field being validated $maximumLength Maximum length allowed for the column (boolean) validateLength($value, $type, $maximumLength)
Validates the length of a field.
Doctrine_Validator
-
validateRecord(( ) $record)
Validates a given record and saves possible errors in Doctrine_Validator::$stack