|
MediaWiki
REL1_19
|
Multi-select field. More...


Public Member Functions | |
| formatOptions ($options, $value) | |
| getDefault () | |
| getInputHTML ($value) | |
| This function must be implemented to return the HTML to generate the input object itself. | |
| loadDataFromRequest ($request) | |
| validate ($value, $alldata) | |
| Override this function to add specific validation checks on the field input. | |
Protected Member Functions | |
| needsLabel () | |
| Should this field have a label, or is there no input element with the appropriate id for the label to point to? | |
Multi-select field.
Definition at line 1584 of file HTMLForm.php.
| HTMLMultiSelectField::formatOptions | ( | $ | options, |
| $ | value | ||
| ) |
Definition at line 1615 of file HTMLForm.php.
References $options, Xml\check(), and Html\rawElement().
Referenced by getInputHTML().


Reimplemented from HTMLFormField.
Definition at line 1669 of file HTMLForm.php.
Referenced by loadDataFromRequest().

| HTMLMultiSelectField::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.
Definition at line 1609 of file HTMLForm.php.
References formatOptions().

| HTMLMultiSelectField::loadDataFromRequest | ( | $ | request | ) |
| $request | WebRequest |
Reimplemented from HTMLFormField.
Definition at line 1648 of file HTMLForm.php.
References getDefault().

| HTMLMultiSelectField::needsLabel | ( | ) | [protected] |
Should this field have a label, or is there no input element with the appropriate id for the label to point to?
Reimplemented from HTMLFormField.
Definition at line 1677 of file HTMLForm.php.
| HTMLMultiSelectField::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 EditWatchlistCheckboxSeriesField.
Definition at line 1586 of file HTMLForm.php.
References HTMLFormField\flattenOptions(), and wfMsgExt().
