Class myDateCompareValidator

Description

Class for compare two dates from a form and verify if them follows the condition passed

  • author: Diego Cebrián

Located in /apps/frontend/lib/myDateCompareValidator.php (line 20)

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

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

Function to start the validation class.

The parameters array is composed of:

  • check_date: the name of the field of the form to compare with
  • compare_error: The string that will be shown when the condition is not raised
  • operator: the operator comparison value. Te posible values are: '>', '>=', '<', '<=', '=', '!='

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

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