|
MediaWiki
REL1_23
|
Select dropdown field, with an additional "other" textbox. More...


Public Member Functions | |
| __construct ($params) | |
| Initialise the object. | |
| getInputHTML ($value) | |
| This function must be implemented to return the HTML to generate the input object itself. | |
| loadDataFromRequest ($request) | |
Select dropdown field, with an additional "other" textbox.
Definition at line 6 of file HTMLSelectOrOtherField.php.
| HTMLSelectOrOtherField::__construct | ( | $ | params | ) |
Initialise the object.
| array | $params | Associative Array. See HTMLForm doc for syntax. |
| MWException |
Reimplemented from HTMLFormField.
Definition at line 7 of file HTMLSelectOrOtherField.php.
References $params, HTMLFormField\getOptions(), and wfMessage().
| HTMLSelectOrOtherField::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.
| string | $value | the value to set the input to; eg a default text for a text input. |
Reimplemented from HTMLTextField.
Definition at line 20 of file HTMLSelectOrOtherField.php.
References $value, array(), empty, HTMLFormField\flattenOptions(), HTMLFormField\getOptions(), HTMLTextField\getSize(), and Html\input().
| HTMLSelectOrOtherField::loadDataFromRequest | ( | $ | request | ) |
| $request | WebRequest |
Reimplemented from HTMLFormField.
Definition at line 69 of file HTMLSelectOrOtherField.php.
References HTMLFormField\getDefault().