[ Index ]
 

Code source de Symfony 1.0.0

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

title

Body

[fermer]

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

(pas de description)

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

Définit 1 class

sfDateValidator:: (3 méthodes):
  execute()
  getValidDate()
  initialize()


Classe: sfDateValidator  - X-Ref

sfDateValidator verifies a parameter is of a date format.

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

param: mixed A file or parameter value/array
param: error An error message reference
return: bool true, if this validator executes successfully, otherwise false

getValidDate($value, $culture)   X-Ref
Converts the given date into a Unix timestamp.

Returns null if the date is invalid

param: $value    Date to convert
param: $culture  Language culture to use

initialize($context, $parameters = null)   X-Ref
Initializes the 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