MediaWiki  REL1_24
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 876 of file Xml.php.


Constructor & Destructor Documentation

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

Definition at line 881 of file Xml.php.


Member Function Documentation

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

Definition at line 926 of file Xml.php.

XmlSelect::addOptions ( options)

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

Parameters:
array$options

Definition at line 940 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:
array$options
bool$default
Returns:
string

Definition at line 953 of file Xml.php.

Parameters:
string$name
Returns:
array|null

Definition at line 914 of file Xml.php.

Returns:
string

Definition at line 971 of file Xml.php.

XmlSelect::setAttribute ( name,
value 
)
Parameters:
string$name
array$value

Definition at line 906 of file Xml.php.

XmlSelect::setDefault ( default)
Parameters:
string$default

Definition at line 898 of file Xml.php.


Member Data Documentation

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

Definition at line 879 of file Xml.php.

XmlSelect::$default = false [protected]

Definition at line 878 of file Xml.php.

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

Definition at line 877 of file Xml.php.


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