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

Class: HTML_QuickForm_Rule_Compare

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

Class Overview

HTML_QuickForm_Rule
   |
   --HTML_QuickForm_Rule_Compare

Rule to compare two form fields


Author(s):

Version:

  • Release: 3.2.13

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

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

  • Author: Alexey Borzov <avb@php.net>
  • Version: Release: 3.2.13
  • Since: 3.2


[ Top ]


Method Detail

getValidationScript   [line 94]

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 ]

validate   [line 81]

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


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

Parameters:

   $values     
   $operator     

[ Top ]


Documentation generated on Sat, 01 Oct 2011 09:00:08 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.