sfCallbackValidator allows you to use a custom callback function or method
to validate the input. The function should return true on valid and false
on invalid and should be callable using is_callable().
Method Details
-
(boolean) execute (&$value, &$error)
Browse code
| &$value |
A parameter value
|
| &$error |
An error message reference
|
Executes this validator.
returns true, if this validator executes successfully, otherwise false
-
(boolean) initialize ((sfContext) $context, $parameters = null)
Browse code
| $context |
The current application context
|
| $parameters |
An associative array of initialization parameters
|
Initializes this validator.
returns true, if initialization completes successfully, otherwise false
|