MediaWiki
REL1_24
|
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 6 of file HTMLMultiSelectField.php.
Support for seperating multi-option preferences into multiple preferences Due to lack of array support.
array | $data |
Implements HTMLNestedFilterable.
Definition at line 107 of file HTMLMultiSelectField.php.
References $options, $res, array(), as, HTMLFormField\flattenOptions(), HTMLFormField\forceToStringRecursive(), and HTMLFormField\getOptions().
HTMLMultiSelectField::formatOptions | ( | $ | options, |
$ | value | ||
) |
Definition at line 37 of file HTMLMultiSelectField.php.
References $attribs, $html, $options, $value, array(), as, check, HTMLFormField\getAttributes(), and Html\rawElement().
Referenced by getInputHTML().
Reimplemented from HTMLFormField.
Definition at line 99 of file HTMLMultiSelectField.php.
References array().
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.
string | $value | The value to set the input to; eg a default text for a text input. |
Reimplemented from HTMLFormField.
Definition at line 30 of file HTMLMultiSelectField.php.
References $html, $value, HTMLFormField\forceToStringRecursive(), formatOptions(), and HTMLFormField\getOptions().
HTMLMultiSelectField::loadDataFromRequest | ( | $ | request | ) |
WebRequest | $request |
Reimplemented from HTMLFormField.
Definition at line 78 of file HTMLMultiSelectField.php.
References array(), and 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 119 of file HTMLMultiSelectField.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 | array | $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 7 of file HTMLMultiSelectField.php.
References $value, HTMLFormField\flattenOptions(), HTMLFormField\getOptions(), and HTMLFormField\msg().