PHP 클래스 PHPHtmlParser\Dom\TextNode

상속: extends LeafNode
파일 보기 프로젝트 열기: paquettg/php-html-parser 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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