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

Class: HTML_QuickForm_Rule_Compare

Source Location: /pear/HTML/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




Tags:

version:  $Revision: 1.3 $
access:  public


[ Top ]


Class Methods


method getValidationScript [line 84]

void getValidationScript( [ $operator = null])



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

Parameters:

   $operator  

[ Top ]

method validate [line 71]

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



Overrides HTML_QuickForm_Rule::validate() (Validates a value)

Parameters:

   $values  
   $operator  

[ Top ]


Documentation generated on Sun, 08 Jan 2012 17:51:44 +0100 by phpDocumentor 1.4.3