HTML_QuickForm
[ class tree: HTML_QuickForm ] [ index: HTML_QuickForm ] [ all elements ]

Class: HTML_QuickForm_Rule_DateCompare

Source Location: /main/inc/lib/formvalidator/Rule/DateCompare.php

Class Overview

HTML_QuickForm_Rule
   |
   --HTML_QuickForm_Rule_Compare
      |
      --HTML_QuickForm_Rule_DateCompare

QuickForm rule to compare 2 dates


Author(s):

Version:

  • $Revision: 6184 $

Methods


Inherited Variables

Inherited Methods

Class: HTML_QuickForm_Rule_Compare

HTML_QuickForm_Rule_Compare::getValidationScript()
HTML_QuickForm_Rule_Compare::validate()
HTML_QuickForm_Rule_Compare::_findOperator()
Returns the operator to use for comparing the values

Class: HTML_QuickForm_Rule

HTML_QuickForm_Rule::getValidationScript()
Returns the javascript test (the test should return true if the value is INVALID)
HTML_QuickForm_Rule::setName()
Sets the rule name
HTML_QuickForm_Rule::validate()
Validates a value

Class Details

[line 28]
QuickForm rule to compare 2 dates



Tags:

version:  $Revision: 6184 $


[ Top ]


Class Methods


method validate [line 37]

boolean validate( array $values, [string $operator = null])

Validate 2 dates



Tags:

return:  True if the 2 given dates match the operator


Overrides HTML_QuickForm_Rule_Compare::validate() (parent method not documented)

Parameters:

array   $values   Array with the 2 dates. Each element in this array should be an array width keys F (month), d (day) and Y (year)
string   $operator   The operator to use (default '==')

[ Top ]


Documentation generated on Thu, 12 Jun 2008 13:18:20 -0500 by phpDocumentor 1.4.1