Copied!
Abstract Trait
Properties
public $root
 

Contains the root node of this dom tree.

  • var HtmlNode
Methods
public __get ( $name )
 

A simple wrapper around the root node.

  • throws NotLoadedException
  • return mixed
public countChildren () : int
 

Simple wrapper function that returns count of child elements.

  • throws NotLoadedException
public firstChild () : PHPHtmlParser\Dom\Node\AbstractNode
 

Simple wrapper function that returns the first child.

  • throws ChildNotFoundException
  • throws NotLoadedException
public getChildren () : array
 

Get array of children.

  • throws NotLoadedException
public hasChildren () : bool
 

Check if node have children nodes.

  • throws NotLoadedException
public abstract isLoaded () : void
public lastChild () : PHPHtmlParser\Dom\Node\AbstractNode
 

Simple wrapper function that returns the last child.

  • throws ChildNotFoundException
  • throws NotLoadedException
© 2021 Bruce Wells
Search Namespaces \ Classes
Configuration