[ Index ]
 

Code source de Symfony 1.0.0

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

title

Body

[fermer]

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

(pas de description)

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

Définit 1 class

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


Classe: sfStringValidator  - X-Ref

sfStringValidator allows you to apply string-related constraints to a
parameter.

<b>Optional parameters:</b>

# <b>insensitive</b>  - [false]              - Whether or not the value check
against the array of values is
case-insensitive. <b>Note:</b>
When using this option, values
in the values array must be
entered in lower-case.
# <b>max</b>          - [none]               - Maximum string length.
# <b>max_error</b>    - [Input is too long]  - An error message to use when
input is too long.
# <b>min</b>          - [none]               - Minimum string length.
# <b>min_error</b>    - [Input is too short] - An error message to use when
input is too short.
# <b>values</b>       - [none]               - An array of values the input
is allowed to match.
# <b>values_error</b> - [Invalid selection]  - An error message to use when
input does not match a value
listed in the values array.

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

param: mixed A parameter value
param: error An error message reference
return: bool 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: bool 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