MediaWiki  REL1_24
HTMLIntField Class Reference

A field that must contain a number. More...

Inheritance diagram for HTMLIntField:
Collaboration diagram for HTMLIntField:

List of all members.

Public Member Functions

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

Detailed Description

A field that must contain a number.

Definition at line 6 of file HTMLIntField.php.


Member Function Documentation

HTMLIntField::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 | array$valueThe value the field was submitted with
array$alldataThe data collected from the form
Returns:
bool|string True on success, or String error to display, or false to fail validation without displaying an error.

Reimplemented from HTMLFloatField.

Definition at line 7 of file HTMLIntField.php.

References $value, and HTMLFormField\msg().


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