PHP Класс PHPHtmlParser\StaticDom

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__callStatic ( string $method, array $arguments ) : mixed Attempts to call the given method on the most recent created dom from bellow.
load ( string $str ) Creates a new dom object and calls load() on the new object.
loadFromFile ( string $file ) Creates a new dom object and calls loadFromFile() on the new object.
loadFromUrl ( string $url, array $options = [], phphtmlparser\CurlInterface $curl = null ) Creates a new dom object and calls loadFromUrl() on the new object.
mount ( string $className = 'Dom', Dom $dom = null ) : boolean Call this to mount the static facade. The facade allows you to use this object as a $className.
unload ( ) Sets the $dom variable to null.

Описание методов

__callStatic() публичный статический Метод

Attempts to call the given method on the most recent created dom from bellow.
public static __callStatic ( string $method, array $arguments ) : mixed
$method string
$arguments array
Результат mixed

load() публичный статический Метод

Creates a new dom object and calls load() on the new object.
public static load ( string $str )
$str string

loadFromFile() публичный статический Метод

Creates a new dom object and calls loadFromFile() on the new object.
public static loadFromFile ( string $file )
$file string

loadFromUrl() публичный статический Метод

Creates a new dom object and calls loadFromUrl() on the new object.
public static loadFromUrl ( string $url, array $options = [], phphtmlparser\CurlInterface $curl = null )
$url string
$options array
$curl phphtmlparser\CurlInterface

mount() публичный статический Метод

Call this to mount the static facade. The facade allows you to use this object as a $className.
public static mount ( string $className = 'Dom', Dom $dom = null ) : boolean
$className string
$dom Dom
Результат boolean

unload() публичный статический Метод

Sets the $dom variable to null.
public static unload ( )