[ Index ]
 

Code source de Symfony 1.0.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/validator/ -> sfCallbackValidator.class.php (sommaire)

(pas de description)

Poids: 85 lignes (3 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

sfCallbackValidator:: (2 méthodes):
  execute()
  initialize()


Classe: sfCallbackValidator  - X-Ref

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().

<b>Required parameters:</b>

# <b>callback</b> - [none] - A valid callback function or Class::method array.
When using class/method specify it as an array in yml file as [class, method]

<b>Optional parameters:</b>

# <b>invalid_error</b> - [Invalid input] - An error message to use when the
input fails the callback check

execute(&$value, &$error)   X-Ref
Executes this validator.

param: string A parameter value
param: string An error message reference
return: boolean true, if this validator executes successfully, otherwise false

initialize($context, $parameters = null)   X-Ref
Initializes this validator.

param: sfContext The current application context
param: array   An associative array of initialization parameters
return: boolean true, if initialization completes successfully, otherwise false



Généré le : Fri Mar 16 22:42:14 2007 par Balluche grâce à PHPXref 0.7