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

Class: HTML_QuickForm_Rule_Range

Source Location: /HTML_QuickForm-3.2.14/QuickForm/Rule/Range.php

Class Overview

HTML_QuickForm_Rule
   |
   --HTML_QuickForm_Rule_Range

Checks that the length of value is within range


Author(s):

Version:

  • Release: 3.2.14

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 38]
Checks that the length of value is within range


[ Top ]


Method Detail

getValidationScript   [line 59]

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 ]

validate   [line 48]

boolean validate( string $value, [mixed $options = null])

Validates a value using a range comparison
  • 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 Thu, 20 Nov 2014 16:00:21 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.