Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
array $_defaultNamespaces = 'array'Default Namespaces
Detailsarray $_errors = 'array'Array of validation failure message codes
Detailsarray $_messages = 'array'Array of validation failure messages
Detailsarray $_validators = 'array'Validator chain
DetailsaddDefaultNamespaces(
array|string $namespace
)
:
nullAdds a new default namespace
DetailsaddValidator(
Zend_Validate_Interface $validator, boolean $breakChainOnFailure
=
false
)
:
Zend_ValidateAdds a validator to the end of the chain
If $breakChainOnFailure is true, then if the validator fails, the next validator in the chain, if one exists, will not be executed.
DetailsgetDefaultNamespaces(
)
:
arrayReturns the set default namespaces
DetailsgetDefaultTranslator(
$translator
=
null
)
:
Zend_Translate_Adapter|nullReturns the default translation object
DetailsgetErrors(
)
:
arrayDefined by Zend_Validate_Interface
Returns array of validation failure message codes
DetailsgetMessageLength(
)
:
integerReturns the maximum allowed message length
DetailsgetMessages(
)
:
arrayDefined by Zend_Validate_Interface
Returns array of validation failure messages
DetailshasDefaultNamespaces(
)
:
booleanReturns true when defaultNamespaces are set
Detailsis(
mixed $value, string $classBaseName, array $args
=
array, mixed $namespaces
=
array
)
:
boolean
DetailsisValid(
mixed $value
)
:
booleanReturns true if and only if $value passes all validations in the chain
Validators are run in the order in which they were added to the chain (FIFO).
DetailssetDefaultNamespaces(
array|string $namespace
)
:
nullSets new default namespaces
DetailssetDefaultTranslator(
Zend_Translate|Zend_Translate_Adapter|null $translator
=
null
)
:
Sets a default translation object for all validation objects
DetailssetMessageLength(
integer $length
=
1
)
:
Sets the maximum allowed message length
Details