Copied!

Class StaticDom

  • package PHPHtmlParser
Cloneable Final Instantiable
Methods
public static __callStatic ( string $method , array $arguments )
 

Attempts to call the given method on the most recent created dom
from bellow.

  • throws NotLoadedException
  • return mixed
public static load ( string $str ) : PHPHtmlParser\Dom
 

Creates a new dom object and calls load() on the
new object.

  • return PHPHtmlParser\Dom
  • throws ChildNotFoundException
  • throws CircularException
  • throws CurlException
  • throws StrictException
public static loadFromFile ( string $file ) : PHPHtmlParser\Dom
 

Creates a new dom object and calls loadFromFile() on the
new object.

  • return PHPHtmlParser\Dom
  • throws ChildNotFoundException
  • throws CircularException
  • throws StrictException
public static loadFromUrl ( string $url , array $options = [ ] , ? PHPHtmlParser\CurlInterface $curl = NULL ) : PHPHtmlParser\Dom
 

Creates a new dom object and calls loadFromUrl() on the
new object.

  • return PHPHtmlParser\Dom
  • throws ChildNotFoundException
  • throws CircularException
  • throws CurlException
  • throws StrictException
public static mount ( string $className = 'Dom' , ? PHPHtmlParser\Dom $dom = NULL ) : bool
 

Call this to mount the static facade. The facade allows you to use
this object as a $className.

  • return bool
public static unload () : void
 

Sets the $dom variable to null.

Properties
private static $dom
Properties
private static $dom
Methods
public static __callStatic ( string $method , array $arguments )
 

Attempts to call the given method on the most recent created dom
from bellow.

  • throws NotLoadedException
  • return mixed
public static load ( string $str ) : PHPHtmlParser\Dom
 

Creates a new dom object and calls load() on the
new object.

  • return PHPHtmlParser\Dom
  • throws ChildNotFoundException
  • throws CircularException
  • throws CurlException
  • throws StrictException
public static loadFromFile ( string $file ) : PHPHtmlParser\Dom
 

Creates a new dom object and calls loadFromFile() on the
new object.

  • return PHPHtmlParser\Dom
  • throws ChildNotFoundException
  • throws CircularException
  • throws StrictException
public static loadFromUrl ( string $url , array $options = [ ] , ? PHPHtmlParser\CurlInterface $curl = NULL ) : PHPHtmlParser\Dom
 

Creates a new dom object and calls loadFromUrl() on the
new object.

  • return PHPHtmlParser\Dom
  • throws ChildNotFoundException
  • throws CircularException
  • throws CurlException
  • throws StrictException
public static mount ( string $className = 'Dom' , ? PHPHtmlParser\Dom $dom = NULL ) : bool
 

Call this to mount the static facade. The facade allows you to use
this object as a $className.

  • return bool
public static unload () : void
 

Sets the $dom variable to null.

© 2020 Bruce Wells
Search Namespaces \ Classes
Configuration Numbers (0-9.) only