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

Class: HTML_QuickForm_Rule_MultipleRequired

Source Location: /main/inc/lib/formvalidator/Rule/MultipleRequired.php

Class Overview

HTML_QuickForm_Rule
   |
   --HTML_QuickForm_Rule_MultipleRequired

Required elements validation


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 20]
Required elements validation



Tags:

version:  1.0


[ Top ]


Class Methods


method getValidationScript [line 43]

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

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

Checks if all the elements are empty



Tags:

return:  true if value is not empty
access:  public


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

Parameters:

string   $value   Value to check (can be an array)
mixed   $options   Not used yet

[ Top ]


Documentation generated on Thu, 12 Jun 2008 14:06:23 -0500 by phpDocumentor 1.4.1