MediaWiki  REL1_24
HTMLSelectOrOtherField Class Reference

Select dropdown field, with an additional "other" textbox. More...

Inheritance diagram for HTMLSelectOrOtherField:
Collaboration diagram for HTMLSelectOrOtherField:

List of all members.

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.
 loadDataFromRequest ($request)

Detailed Description

Select dropdown field, with an additional "other" textbox.

Definition at line 6 of file HTMLSelectOrOtherField.php.


Constructor & Destructor Documentation

Initialise the object.

Parameters:
array$paramsAssociative Array. See HTMLForm doc for syntax.
Since:
1.22 The 'label' attribute no longer accepts raw HTML, use 'label-raw' instead
Exceptions:
MWException

Reimplemented from HTMLFormField.

Definition at line 7 of file HTMLSelectOrOtherField.php.

References $params, array(), HTMLFormField\getOptions(), and wfMessage().


Member Function Documentation

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.

Parameters:
string$valueThe value to set the input to; eg a default text for a text input.
Returns:
string Valid HTML.

Reimplemented from HTMLTextField.

Definition at line 21 of file HTMLSelectOrOtherField.php.

References $value, array(), empty, HTMLFormField\flattenOptions(), HTMLFormField\getOptions(), HTMLTextField\getSize(), and Html\input().

Parameters:
WebRequest$request
Returns:
string

Reimplemented from HTMLFormField.

Definition at line 70 of file HTMLSelectOrOtherField.php.

References HTMLFormField\getDefault().


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