PHP Class Essence\Dom\Document

ファイルを表示 Open project: benjamminf/craft-embedded-assets Class Usage Examples

Protected Properties

Property Type Description
$_html string HTML source.

Public Methods

Method Description
__construct ( string $html ) Contructor.
tags ( string $name, Closure $filter = null ) : array Returns all tags identified by the given name.

Method Details

__construct() public method

Contructor.
public __construct ( string $html )
$html string HTML source.

tags() abstract public method

Returns all tags identified by the given name.
abstract public tags ( string $name, Closure $filter = null ) : array
$name string Tag name.
$filter Closure A callback to filter tags.
return array Tags.

Property Details

$_html protected_oe property

HTML source.
protected string $_html
return string