MediaWiki  1.23.1
XmlSelect Class Reference

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 ) More...
 
 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 ) More...
 

Protected Attributes

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

Detailed Description

Definition at line 842 of file Xml.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 847 of file Xml.php.

Member Function Documentation

◆ addOption()

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

Definition at line 892 of file Xml.php.

◆ addOptions()

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.

◆ formatOptions()

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.

◆ getAttribute()

XmlSelect::getAttribute (   $name)
Parameters
$name
Returns
array|null

Definition at line 880 of file Xml.php.

◆ getHTML()

XmlSelect::getHTML ( )
Returns
string

Definition at line 937 of file Xml.php.

◆ setAttribute()

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

Definition at line 872 of file Xml.php.

◆ setDefault()

XmlSelect::setDefault (   $default)
Parameters
$default

Definition at line 864 of file Xml.php.

Member Data Documentation

◆ $attributes

XmlSelect::$attributes = array()
protected

Definition at line 845 of file Xml.php.

◆ $default

XmlSelect::$default = false
protected

Definition at line 844 of file Xml.php.

◆ $options

XmlSelect::$options = array()
protected

Definition at line 843 of file Xml.php.


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