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.
INVALID_CALLBACK = 'callbackInvalid'
Invalid callback
INVALID_VALUE = 'callbackValue'
Invalid value
string|array $_callback = 'null'
Callback in a call_user_func format
array $_messageTemplates = 'array'
Validation failure message template definitions
mixed $_options = 'array'
Default options to set for the filter
__construct(
string|array $callback
=
null
)
:
void
Sets validator options
getCallback(
)
:
mixed
Returns the set callback
getOptions(
)
:
mixed
Returns the set options for the callback
isValid(
mixed $value
)
:
boolean
Defined by Zend_Validate_Interface
Returns true if and only if the set callback returns for the provided $value
setCallback(
string|array $callback
)
:
Zend_Validate_Callback
Sets the callback
setOptions(
$options
)
:
Zend_Validate_Callback
Sets options for the callback