Copied!

Class StaticDom.

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 loadFromFile ( string $file , ? PHPHtmlParser\Options $options = NULL ) : PHPHtmlParser\Dom
 

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

public static loadFromUrl ( string $url , ? PHPHtmlParser\Options $options = NULL , ? Psr\Http\Client\ClientInterface $client = NULL , ? Psr\Http\Message\RequestInterface $request = NULL ) : PHPHtmlParser\Dom
 

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

public static loadStr ( string $str , ? PHPHtmlParser\Options $options = NULL ) : PHPHtmlParser\Dom
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.

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 loadFromFile ( string $file , ? PHPHtmlParser\Options $options = NULL ) : PHPHtmlParser\Dom
 

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

public static loadFromUrl ( string $url , ? PHPHtmlParser\Options $options = NULL , ? Psr\Http\Client\ClientInterface $client = NULL , ? Psr\Http\Message\RequestInterface $request = NULL ) : PHPHtmlParser\Dom
 

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

public static loadStr ( string $str , ? PHPHtmlParser\Options $options = NULL ) : PHPHtmlParser\Dom
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.

public static unload () : void
 

Sets the $dom variable to null.

© 2021 Bruce Wells
Search Namespaces \ Classes
Configuration