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

Class: HTML_QuickForm_Rule_DateCompare

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

Class Overview

HTML_QuickForm_Rule_Compare
   |
   --HTML_QuickForm_Rule_DateCompare

QuickForm rule to compare 2 dates


Methods



Class Details

[line 28]
QuickForm rule to compare 2 dates



[ 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


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 Wed, 05 Sep 2007 06:14:34 +0200 by phpDocumentor 1.4.0