Node

Represent an abstract HTML node.

package

Default

Methods

Return a HTML string of the node element.

__toString() : string

Response

string

Return a value of the attribute whoose name is given.

getAttribute(string $name) : mixed

Arguments

$name

string

The name of the attribute

Response

mixed

Return a string with a list of all attributes ot the node element.

getAttributeList() : string

Response

string

Return an array with all attributes of the node element.

getAttributes() : array

Response

array

Remove an attribute whoose name is given.

removeAttribute(string $name) : \Dotpay\Html\Node

Arguments

$name

string

The name of the attribute

Response

\Dotpay\Html\Node

Set a value of the atribute whoose name is given.

setAttribute(string $name, mixed $value) : \Dotpay\Html\Node

Arguments

$name

string

The name of the attribute

$value

mixed

The value of the attribute

Response

\Dotpay\Html\Node

Properties

List of all attributes of the node

attributes : array
var

List of all attributes of the node

Type(s)

array