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

Class: HTML_QuickForm_Rule_Required

Source Location: /HTML_QuickForm-3.2.5/QuickForm/Rule/Required.php

Class Overview

HTML_QuickForm_Rule
   |
   --HTML_QuickForm_Rule_Required

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 27]
Required elements validation
  • Version: 1.0


[ Top ]


Method Detail

getValidationScript   [line 46]

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

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

Checks if an element is empty
  • Return: true if value is not empty
  • Access: public

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

Parameters:

string   $value   —  Value to check
mixed   $options   —  Not used yet

[ Top ]


Documentation generated on Mon, 11 Mar 2019 14:16:36 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.