MediaWiki  1.23.1
EditWatchlistCheckboxSeriesField Class Reference
Inheritance diagram for EditWatchlistCheckboxSeriesField:
Collaboration diagram for EditWatchlistCheckboxSeriesField:

Public Member Functions

 validate ( $value, $alldata)
 HTMLMultiSelectField throws validation errors if we get input data that doesn't match the data set in the form setup. More...
 
- Public Member Functions inherited from HTMLMultiSelectField
 filterDataForSubmit ( $data)
 Support for seperating multi-option preferences into multiple preferences Due to lack of array support. More...
 
 formatOptions ( $options, $value)
 
 getDefault ()
 
 getInputHTML ( $value)
 This function must be implemented to return the HTML to generate the input object itself. More...
 
 loadDataFromRequest ( $request)
 
- Public Member Functions inherited from HTMLFormField
 __construct ( $params)
 Initialise the object. More...
 
 filter ( $value, $alldata)
 
 getAttributes (array $list)
 Returns the given attributes from the parameters. More...
 
 getDiv ( $value)
 Get the complete div for the input, including help text, labels, and whatever. More...
 
 getErrorsAndErrorClass ( $value)
 Determine form errors to display and their classes. More...
 
 getHelpText ()
 Determine the help text to display. More...
 
 getHelpTextHtmlDiv ( $helptext)
 Generate help text HTML in div format. More...
 
 getHelpTextHtmlRaw ( $helptext)
 Generate help text HTML formatted for raw output. More...
 
 getHelpTextHtmlTable ( $helptext)
 Generate help text HTML in table format. More...
 
 getLabel ()
 
 getLabelHtml ( $cellAttributes=array())
 
 getOptions ()
 Fetch the array of options from the field's parameters. More...
 
 getRaw ( $value)
 Get the complete raw fields for the input, including help text, labels, and whatever. More...
 
 getTableRow ( $value)
 Get the complete table row for the input, including help text, labels, and whatever. More...
 
 getTooltipAndAccessKey ()
 Returns the attributes required for the tooltip and accesskey. More...
 
 msg ()
 Get a translated interface message. More...
 
 setShowEmptyLabel ( $show)
 Tell the field whether to generate a separate label element if its label is blank. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from HTMLFormField
static flattenOptions ( $options)
 flatten an array of options to a single array, for instance, a set of "<options>" inside "<optgroups>". More...
 
static forceToStringRecursive ( $array)
 Recursively forces values in an array to strings, because issues arise with integer 0 as a value. More...
 
- Public Attributes inherited from HTMLFormField
 $mParams
 
HTMLForm $mParent
 
- Protected Member Functions inherited from HTMLMultiSelectField
 needsLabel ()
 Should this field have a label, or is there no input element with the appropriate id for the label to point to? More...
 
- Static Protected Member Functions inherited from HTMLFormField
static formatErrors ( $errors)
 Formats one or more errors as accepted by field validation-callback. More...
 
- Protected Attributes inherited from HTMLFormField
 $mClass = ''
 
 $mDefault
 
 $mFilterCallback
 
 $mID
 
 $mLabel
 
 $mName
 
 $mOptions = false
 
 $mOptionsLabelsNotFromMessage = false
 
bool $mShowEmptyLabels = true
 If true will generate an empty div element with no label. More...
 
 $mValidationCallback
 

Detailed Description

Definition at line 737 of file SpecialEditWatchlist.php.

Member Function Documentation

◆ validate()

EditWatchlistCheckboxSeriesField::validate (   $value,
  $alldata 
)

HTMLMultiSelectField throws validation errors if we get input data that doesn't match the data set in the form setup.

This causes problems if something gets removed from the watchlist while the form is open (bug 32126), but we know that invalid items will be harmless so we can override it here.

Parameters
string$valuethe value the field was submitted with
array$alldatathe data collected from the form
Returns
Mixed Bool true on success, or String error to display.

Reimplemented from HTMLMultiSelectField.

Definition at line 749 of file SpecialEditWatchlist.php.

References $value, and HTMLFormField\validate().


The documentation for this class was generated from the following file: