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

Class: HTML_QuickForm_Rule_Compare

Source Location: /HTML_QuickForm-3.2/QuickForm/Rule/Compare.php

Class Overview

HTML_QuickForm_Rule
   |
   --HTML_QuickForm_Rule_Compare

Rule to compare two form fields


Author(s):

Version:

  • $Revision: 1.3 $

Methods


Inherited Variables

Inherited Methods

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 33]
Rule to compare two form fields

The most common usage for this is to ensure that the password confirmation field matches the password field

  • Version: $Revision: 1.3 $
  • Access: public


[ Top ]


Method Detail

getValidationScript   [line 84]

void getValidationScript( [mixed $operator = null])


Overrides HTML_QuickForm_Rule::getValidationScript() (Returns the javascript test (the test should return true if the value is INVALID))
[ Top ]

validate   [line 71]

void validate( mixed $values, [mixed $operator = null])


Overrides HTML_QuickForm_Rule::validate() (Validates a value)
[ Top ]


Documentation generated on Sat, 1 May 2004 01:06:52 +0200 by phpDocumentor 1.2.3. PEAR Logo Copyright © PHP Group 2004.