PlainText

Extends \Dotpay\Html\Node

Represent a plain text which is inserted into HTML without any tags.

package

Default

Methods

Initialize the plain text element.

__construct(string $text = '') 

Arguments

$text

string

A content of the text element

Return a HTML string of the node element.

__toString() : string
inherited

Response

string

Return a value of the attribute whoose name is given.

getAttribute(string $name) : mixed
inherited

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
inherited

Response

string

Return an array with all attributes of the node element.

getAttributes() : array
inherited

Response

array

Return a content of the text element.

getText() : string

Response

string

Remove an attribute whoose name is given.

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

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
inherited

Arguments

$name

string

The name of the attribute

$value

mixed

The value of the attribute

Response

\Dotpay\Html\Node

Set a content of the text element.

setText(string $text) : \Dotpay\Html\PlainText

Arguments

$text

string

A content of the text element

Response

\Dotpay\Html\PlainText

Properties

A content of the text element

text : string
var

A content of the text element

Type(s)

string

List of all attributes of the node

attributes : array
inherited
var

List of all attributes of the node

Type(s)

array