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 9)

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

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 28)

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 Sun, 22 Mar 2009 19:18:08 +0100 by phpDocumentor 1.4.2