Represent HTML span block.
| 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
getType() : string
string
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
setType(string $type) : \Dotpay\Html\Element
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