Class myDateValidator

Description

Class for checking that a date is valid for a localized environment

  • author: Diego Cebrián

Located in /apps/frontend/lib/myDateValidator.php (line 17)

sfValidator
   |
   --myDateValidator
Method Summary
boolean execute (string &$value, string &$error)
unknown initialize (unknown_type $context, [unknown_type $parameters = null])
Methods
execute (line 59)

Function that execute the validation with the parameters passed in initialize, except the value, that is passed here by the validation helper, and it's value is the value filled in the field form to check

  • access: public
boolean execute (string &$value, string &$error)
  • string &$value
  • string &$error
initialize (line 36)

Function to start the validation class.

The parameters array is composed of:

  • date_error: The string that will be shown when the date is not valid

  • access: public
unknown initialize (unknown_type $context, [unknown_type $parameters = null])
  • unknown_type $context
  • unknown_type $parameters

Documentation generated on Tue, 31 Mar 2009 19:03:25 +0200 by phpDocumentor 1.4.2