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

Class: HTML_QuickForm_Rule_Callback

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

Class Overview

HTML_QuickForm_Rule
   |
   --HTML_QuickForm_Rule_Callback

Validates values using callback functions or methods


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]
Validates values using callback functions or methods


[ Top ]


Method Detail

addData   [line 99]

void addData( string $name, string $callback, [string $class = null], [bool $BCMode = false])

Adds new callbacks to the callbacks list
  • Access: public

Parameters:

string   $name   —  Name of rule
string   $callback   —  Name of function or method
string   $class   —  Name of class containing the method
bool   $BCMode   —  Backwards compatibility mode

[ Top ]

getValidationScript   [line 110]

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

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

Validates a value using a callback
  • 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   —  Options for callback

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:59:47 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.