[ Index ]
 

Code source de Symfony 1.0.0

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

title

Body

[fermer]

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

sfValidator allows you to apply constraints to user entered parameters.

Author: Fabien Potencier <fabien.potencier@symfony-project.com>
Author: Sean Kerr <skerr@mojavi.org>
Version: SVN: $Id: sfValidator.class.php 3250 2007-01-12 20:09:11Z fabien $
Poids: 113 lignes (3 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 6 fonctions

  getContext()
  initialize()
  getParameterHolder()
  getParameter()
  hasParameter()
  setParameter()

Fonctions
Fonctions qui ne font pas partie d'une Classe:

getContext()   X-Ref
Retrieves the current application context.

return: sfContext The current sfContext instance

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

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

getParameterHolder()   X-Ref
Retrieves the parameters from the validator.

return: sfParameterHolder List of parameters

getParameter($name, $default = null, $ns = null)   X-Ref
Retrieves a parameter from the validator.

param: string Parameter name
param: mixed A default parameter value
param: string A parameter namespace
return: mixed A parameter value

hasParameter($name, $ns = null)   X-Ref
Indicates whether or not a parameter exist for the validator.

param: string A parameter name
param: string A parameter namespace
return: boolean true, if parameter exists, otherwise false

setParameter($name, $value, $ns = null)   X-Ref
Sets a parameter for the validator.

param: string A parameter name
param: mixed A parameter value
param: string A parameter namespace



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