MediaWiki  REL1_22
XmlSelect Class Reference

List of all members.

Public Member Functions

 __construct ($name=false, $id=false, $default=false)
 addOption ($name, $value=false)
 addOptions ($options)
 This accepts an array of form label => value label => ( label => value, label => value )
 getAttribute ($name)
 getHTML ()
 setAttribute ($name, $value)
 setDefault ($default)

Static Public Member Functions

static formatOptions ($options, $default=false)
 This accepts an array of form label => value label => ( label => value, label => value )

Protected Attributes

 $attributes = array()
 $default = false
 $options = array()

Detailed Description

Definition at line 842 of file Xml.php.


Constructor & Destructor Documentation

XmlSelect::__construct ( name = false,
id = false,
default = false 
)

Definition at line 847 of file Xml.php.


Member Function Documentation

XmlSelect::addOption ( name,
value = false 
)
Parameters:
$name
$valuebool

Definition at line 892 of file Xml.php.

XmlSelect::addOptions ( options)

This accepts an array of form label => value label => ( label => value, label => value )

Parameters:
$options

Definition at line 906 of file Xml.php.

static XmlSelect::formatOptions ( options,
default = false 
) [static]

This accepts an array of form label => value label => ( label => value, label => value )

Parameters:
$options
bool$default
Returns:
string

Definition at line 919 of file Xml.php.

Parameters:
$name
Returns:
array|null

Definition at line 880 of file Xml.php.

Returns:
string

Definition at line 937 of file Xml.php.

XmlSelect::setAttribute ( name,
value 
)
Parameters:
$namestring
$value

Definition at line 872 of file Xml.php.

XmlSelect::setDefault ( default)
Parameters:
$default

Definition at line 864 of file Xml.php.


Member Data Documentation

XmlSelect::$attributes = array() [protected]

Definition at line 845 of file Xml.php.

XmlSelect::$default = false [protected]

Definition at line 844 of file Xml.php.

XmlSelect::$options = array() [protected]

Definition at line 843 of file Xml.php.


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