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

Class: HTML_QuickForm_Rule_Range

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

Class Overview

HTML_QuickForm_Rule
   |
   --HTML_QuickForm_Rule_Range

Validates values using range comparison


Author(s):

Version:

  • 1.0

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 27]
Validates values using range comparison



Tags:

version:  1.0


[ Top ]


Class Methods


method getValidationScript [line 48]

void getValidationScript( [ $options = null])



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

Parameters:

   $options  

[ Top ]

method validate [line 37]

boolean validate( string $value, mixed $options)

Validates a value using a range comparison



Tags:

return:  true if value is valid
access:  public


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

Parameters:

string   $value   Value to be checked
mixed   $options   Int for length, array for range

[ Top ]


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