Represent a single HTML element.
package |
Default |
---|
__construct(string $type = '', string $name = null)
string
A type of the element
string
A name of the element
__toString() : string
string
getAttribute(string $name) : mixed
string
The name of the attribute
mixed
getAttributeList() : string
string
getAttributes() : array
array
getClass() : string
string
getData(string $name) : string
string
A name of data information
string
getName() : string
string
getType() : string
string
removeAttribute(string $name) : \Dotpay\Html\Node
setAttribute(string $name, mixed $value) : \Dotpay\Html\Node
string
The name of the attribute
mixed
The value of the attribute
\Dotpay\Html\Node
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
setType(string $type) : \Dotpay\Html\Element
type : string
var |
A type of the element |
---|
string
attributes : array
var |
List of all attributes of the node |
---|
array