PHP Класс Essence\Dom\Document\Native

Наследование: extends Essence\Dom\Document
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$_Document DOMDocument DOM document.

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

Метод Описание
__construct ( $html ) {@inheritDoc}
tags ( $name, Closure $filter = null ) {@inheritDoc}

Защищенные методы

Метод Описание
_fixCharset ( ) If necessary, fixes the given HTML's charset to work with the current version of Libxml (used by DOMDocument).
_loadDocument ( ) Builds a DOMDocument from the HTML source.

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

__construct() публичный Метод

{@inheritDoc}
public __construct ( $html )

_fixCharset() защищенный Метод

Older versions of Libxml only recognizes: and not the new HTML5 form: with the result that parsed strings can have funny characters.
См. также: http://www.glenscott.co.uk/blog/html5-character-encodings-and-domdocument-loadhtml-and-loadhtmlfile
См. также: https://github.com/glenscott/dom-document-charset/blob/master/DOMDocumentCharset.php
protected _fixCharset ( )

_loadDocument() защищенный Метод

Builds a DOMDocument from the HTML source.
protected _loadDocument ( )

tags() публичный Метод

{@inheritDoc}
public tags ( $name, Closure $filter = null )
$filter Closure

Описание свойств

$_Document защищенное свойство

DOM document.
protected DOMDocument $_Document
Результат DOMDocument