PHP Класс PHPHtmlParser\Dom\TextNode

Наследование: extends LeafNode
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$convertedText string This is the converted version of the text.
$tag Tag This is a text node.
$text string This is the text in this node.

Открытые методы

Метод Описание
__construct ( string $text ) Sets the text for this node.
innerHtml ( ) : string This node has no html, just return the text.
outerHtml ( ) : string This node has no html, just return the text.
text ( ) : string Returns the text of this node.

Защищенные методы

Метод Описание
clear ( ) Call this when something in the node tree has changed. Like a child has been added or a parent has been changed.

Описание методов

__construct() публичный Метод

Sets the text for this node.
public __construct ( string $text )
$text string

clear() защищенный Метод

Call this when something in the node tree has changed. Like a child has been added or a parent has been changed.
protected clear ( )

innerHtml() публичный Метод

This node has no html, just return the text.
public innerHtml ( ) : string
Результат string

outerHtml() публичный Метод

This node has no html, just return the text.
public outerHtml ( ) : string
Результат string

text() публичный Метод

Returns the text of this node.
public text ( ) : string
Результат string

Описание свойств

$convertedText защищенное свойство

This is the converted version of the text.
protected string $convertedText
Результат string

$tag защищенное свойство

This is a text node.
protected Tag,PHPHtmlParser\Dom $tag
Результат Tag

$text защищенное свойство

This is the text in this node.
protected string $text
Результат string