Represent a HTML select element.
package |
Default |
---|
__construct(string $type = '', string $name = null)
string
A type of the element
string
A name of the element
__toString() : string
string
addChild(\Dotpay\Html\Node $child)
addOption(\Dotpay\Html\Form\Option $option) : \Dotpay\Html\Form\Select
checkValue(\Dotpay\Html\Form\Option $option, mixed $value) : boolean
mixed
A given value
boolean
getAttribute(string $name) : mixed
string
The name of the attribute
mixed
getAttributeList() : string
string
getAttributes() : array
array
getChildren() : array
array
getClass() : string
string
getData(string $name) : string
string
A name of data information
string
getName() : string
string
getOptions() : array
array
getSelected() : \Dotpay\Html\Form\Option
getType() : string
string
removeAttribute(string $name) : \Dotpay\Html\Node
removeChild(\Dotpay\Html\Node $child) : \Dotpay\Html\Container\Container
removeOption(mixed $value) : \Dotpay\Html\Form\Select
mixed
An value which can be also a text from an option element
\Dotpay\Html\Form\Select
setAttribute(string $name, mixed $value) : \Dotpay\Html\Node
string
The name of the attribute
mixed
The value of the attribute
\Dotpay\Html\Node
setChildren(array $children)
array
Children of the container
setClass(string $className) : \Dotpay\Html\Element
setData(string $name, string $value) : \Dotpay\Html\Element
string
A name of a value
string
A value to saving
\Dotpay\Html\Element
setName(string $name) : \Dotpay\Html\Element
setSelected(mixed $value) : \Dotpay\Html\Form\Select
mixed
An value which can be also a text from an option element
\Dotpay\Html\Form\Select
setType(string $type) : \Dotpay\Html\Element
selected : \Dotpay\Html\Form\Option
children : array
var |
Elements which are children of the container |
---|
array
type : string
var |
A type of the element |
---|
string
attributes : array
var |
List of all attributes of the node |
---|
array