|
MediaWiki
REL1_23
|
Double field with a dropdown list constructed from a system message in the format * Optgroup header ** <option value>=""> * New Optgroup header Plus a text field underneath for an additional reason. 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. | |
| getSize () | |
| loadDataFromRequest ($request) | |
| validate ($value, $alldata) | |
| Override this function to add specific validation checks on the field input. | |
Double field with a dropdown list constructed from a system message in the format * Optgroup header ** <option value>=""> * New Optgroup header Plus a text field underneath for an additional reason.
The 'value' of the field is "<select>: <extra reason>", or "<extra reason>" if nothing has been selected in the select dropdown.
Definition at line 13 of file HTMLSelectAndOtherField.php.
| HTMLSelectAndOtherField::__construct | ( | $ | params | ) |
Initialise the object.
| array | $params | Associative Array. See HTMLForm doc for syntax. |
| MWException |
Reimplemented from HTMLFormField.
Definition at line 14 of file HTMLSelectAndOtherField.php.
References $params, HTMLFormField\flattenOptions(), HTMLFormField\getOptions(), and wfMessage().
| HTMLSelectAndOtherField::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 HTMLSelectField.
Definition at line 35 of file HTMLSelectAndOtherField.php.
References $value, array(), HTMLFormField\getAttributes(), getSize(), and Html\input().
Definition at line 102 of file HTMLSelectAndOtherField.php.
Referenced by getInputHTML().
| HTMLSelectAndOtherField::loadDataFromRequest | ( | $ | request | ) |
| $request | WebRequest |
Reimplemented from HTMLFormField.
Definition at line 67 of file HTMLSelectAndOtherField.php.
References array(), as, HTMLFormField\getDefault(), and HTMLFormField\msg().
| HTMLSelectAndOtherField::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
| string | $value | The value the field was submitted with |
| array | $alldata | The data collected from the form |
Reimplemented from HTMLSelectField.
Definition at line 106 of file HTMLSelectAndOtherField.php.
References $value, and HTMLFormField\msg().