HTMLSelectOrOtherField Class Reference

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

Inherits HTMLTextField.

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)
 Get the value that this input has been set to from a posted form, or the input's default value if it has not been set.

Static Public Member Functions

static forceToStringRecursive ($array)

Static Public Attributes

static $jsAdded = false


Detailed Description

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

Definition at line 1116 of file HTMLForm.php.


Constructor & Destructor Documentation

HTMLSelectOrOtherField::__construct ( params  ) 

Initialise the object.

Parameters:
$params Associative Array. See HTMLForm doc for syntax.

Reimplemented from HTMLFormField.

Definition at line 1119 of file HTMLForm.php.

References wfMsg().


Member Function Documentation

static HTMLSelectOrOtherField::forceToStringRecursive ( array  )  [static]

Definition at line 1127 of file HTMLForm.php.

Referenced by getInputHTML().

HTMLSelectOrOtherField::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.

Parameters:
$value String the value to set the input to; eg a default text for a text input.
Returns:
String valid HTML.

Reimplemented from HTMLTextField.

Definition at line 1135 of file HTMLForm.php.

References HTMLFormField::flattenOptions(), forceToStringRecursive(), HTMLTextField::getSize(), and Html::input().

HTMLSelectOrOtherField::loadDataFromRequest ( request  ) 

Get the value that this input has been set to from a posted form, or the input's default value if it has not been set.

Parameters:
$request WebRequest
Returns:
String the value

Reimplemented from HTMLFormField.

Definition at line 1171 of file HTMLForm.php.

References HTMLFormField::getDefault().


Member Data Documentation

HTMLSelectOrOtherField::$jsAdded = false [static]

Definition at line 1117 of file HTMLForm.php.


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

Generated on Sat Apr 30 22:57:39 2011 for MediaWiki by  doxygen 1.5.9