Represent an option of an HTML select element.
| package |
Default |
|---|
__construct(string $type = '', string $name = null)
stringA type of the element
stringA name of the element
__toString() : string
string
addChild(\Dotpay\Html\Node $child)
getAttribute(string $name) : mixed
stringThe name of the attribute
mixed
getAttributeList() : string
string
getAttributes() : array
array
getChildren() : array
array
getClass() : string
string
getData(string $name) : string
stringA name of data information
string
getName() : string
string
getText() : \Dotpay\Html\PlainText
getType() : string
string
getValue() : mixed
mixed
isSelected() : boolean
boolean
removeAttribute(string $name) : \Dotpay\Html\Node
removeChild(\Dotpay\Html\Node $child) : \Dotpay\Html\Container\Container
setAttribute(string $name, mixed $value) : \Dotpay\Html\Node
stringThe name of the attribute
mixedThe value of the attribute
\Dotpay\Html\Node
setChildren(array $children)
arrayChildren of the container
setClass(string $className) : \Dotpay\Html\Element
setData(string $name, string $value) : \Dotpay\Html\Element
stringA name of a value
stringA value to saving
\Dotpay\Html\Element
setName(string $name) : \Dotpay\Html\Element
setSelected(boolean $mode = true) : \Dotpay\Html\Form\Option
setText(string $text) : \Dotpay\Html\Form\Option
setType(string $type) : \Dotpay\Html\Element
setValue(mixed $value) : \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