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

Class: HTML_QuickForm_Rule_Is_Equal

Source Location: /pear/HTML/QuickForm/Rule/Is_Equal.php

Class Overview

HTML_QuickForm_Rule
   |
   --HTML_QuickForm_Rule_Is_Equal



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 23]


[ Top ]


Class Methods


method validate [line 34]

bool validate( mixed $user_input, array $value)

Tests whether input for parameter user_input matches the supplied value.

Returns boolean true if user_input and value are the same.




Tags:

access:  public


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

Parameters:

mixed   $user_input   User input
array   $value   Required input

[ Top ]


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