|
MediaWiki
REL1_20
|
A select dropdown field. More...


Public Member Functions | |
| getInputHTML ($value) | |
| This function must be implemented to return the HTML to generate the input object itself. | |
| validate ($value, $alldata) | |
| Override this function to add specific validation checks on the field input. | |
A select dropdown field.
Basically a wrapper for Xmlselect class
Definition at line 1778 of file HTMLForm.php.
| HTMLSelectField::getInputHTML | ( | $ | value | ) |
This function must be implemented to return the HTML to generate the input object itself.
It should not implement the surrounding table cells/rows, or labels/help messages.
| $value | String the value to set the input to; eg a default text for a text input. |
Reimplemented from HTMLFormField.
Reimplemented in HTMLSelectAndOtherField.
Definition at line 1794 of file HTMLForm.php.
| HTMLSelectField::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
| $value | String the value the field was submitted with |
| $alldata | Array the data collected from the form |
Reimplemented from HTMLFormField.
Reimplemented in HTMLSelectAndOtherField, and HTMLBlockedUsersItemSelect.
Definition at line 1779 of file HTMLForm.php.
References HTMLFormField\flattenOptions().