프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$innerHtml | Remembers what the innerHtml was if it was scanned previously. | ||
$outerHtml | string | Remembers what the outerHtml was if it was scanned previously. | |
$text | string | Remembers what the text was if it was scanned previously. | |
$textWithChildren | string | Remembers what the text was when we looked into all our children nodes. |
메소드 | 설명 | |
---|---|---|
__construct ( $tag ) | Sets up the tag of this node. | |
innerHtml ( ) : string | Gets the inner html of this node. | |
outerHtml ( ) : string | Gets the html of this node, including it's own tag. | |
text ( boolean $lookInChildren = false ) : string | Gets the text of this node (if there is any text). Or get all the text in this node, including children. |
메소드 | 설명 | |
---|---|---|
clear ( ) | Call this when something in the node tree has changed. Like a child has been added or a parent has been changed. | |
getIteratorArray ( ) : array | Returns all children of this html node. |
protected clear ( ) |
protected getIteratorArray ( ) : array | ||
리턴 | array |
protected $innerHtml |
protected string $outerHtml | ||
리턴 | string |
protected string $text | ||
리턴 | string |
protected string $textWithChildren | ||
리턴 | string |