MediaWiki
REL1_22
|
Multi-select field. More...
Public Member Functions | |
filterDataForSubmit ($data) | |
Support for seperating multi-option preferences into multiple preferences Due to lack of array support. | |
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 2382 of file HTMLForm.php.
Support for seperating multi-option preferences into multiple preferences Due to lack of array support.
$data | array |
Implements HTMLNestedFilterable.
Definition at line 2475 of file HTMLForm.php.
HTMLMultiSelectField::formatOptions | ( | $ | options, |
$ | value | ||
) |
Definition at line 2413 of file HTMLForm.php.
References $html.
Reimplemented from HTMLFormField.
Definition at line 2467 of file HTMLForm.php.
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.
string | $value | the value to set the input to; eg a default text for a text input. |
Reimplemented from HTMLFormField.
Definition at line 2407 of file HTMLForm.php.
HTMLMultiSelectField::loadDataFromRequest | ( | $ | request | ) |
$request | WebRequest |
Reimplemented from HTMLFormField.
Definition at line 2446 of file HTMLForm.php.
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 2486 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
string | $value | the value the field was submitted with |
array | $alldata | the data collected from the form |
Reimplemented from HTMLFormField.
Reimplemented in EditWatchlistCheckboxSeriesField.
Definition at line 2384 of file HTMLForm.php.
References HTMLFormField\flattenOptions().