MediaWiki  REL1_19
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 847 of file Xml.php.


Constructor & Destructor Documentation

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

Definition at line 852 of file Xml.php.

References $default, and setAttribute().

Here is the call graph for this function:


Member Function Documentation

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

Definition at line 897 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 911 of file Xml.php.

References $options.

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 924 of file Xml.php.

References $default, $options, Xml\option(), and Html\rawElement().

Referenced by getHTML().

Here is the call graph for this function:

Here is the caller graph for this function:

Parameters:
$name
Returns:
array|null

Definition at line 885 of file Xml.php.

Returns:
string

Definition at line 942 of file Xml.php.

References $options, formatOptions(), and Html\rawElement().

Here is the call graph for this function:

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

Definition at line 877 of file Xml.php.

Referenced by __construct().

Here is the caller graph for this function:

XmlSelect::setDefault ( default)
Parameters:
$default

Definition at line 869 of file Xml.php.

References $default.


Member Data Documentation

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

Definition at line 850 of file Xml.php.

XmlSelect::$default = false [protected]

Definition at line 849 of file Xml.php.

Referenced by __construct(), formatOptions(), and setDefault().

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

Definition at line 848 of file Xml.php.

Referenced by addOptions(), formatOptions(), and getHTML().


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