MediaWiki  REL1_23
HTMLFloatField Class Reference

A field that will contain a numeric value. More...

Inheritance diagram for HTMLFloatField:
Collaboration diagram for HTMLFloatField:

List of all members.

Public Member Functions

 getSize ()
 validate ($value, $alldata)
 Override this function to add specific validation checks on the field input.

Detailed Description

A field that will contain a numeric value.

Definition at line 6 of file HTMLFloatField.php.


Member Function Documentation

Reimplemented from HTMLTextField.

Definition at line 7 of file HTMLFloatField.php.

HTMLFloatField::validate ( value,
alldata 
)

Override this function to add specific validation checks on the field input.

Don't forget to call parent::validate() to ensure that the user-defined callback mValidationCallback is still run

Parameters:
string$valueThe value the field was submitted with
array$alldataThe data collected from the form
Returns:
Mixed Bool true on success, or String error to display.

Reimplemented from HTMLFormField.

Reimplemented in HTMLIntField.

Definition at line 11 of file HTMLFloatField.php.

References $value, and HTMLFormField\msg().


The documentation for this class was generated from the following file: