Property | Type | Description | |
---|---|---|---|
$_Dom | DOM parser. | ||
$_Http | Essence\Http\Client | HTTP client. | |
$_metaAttribute | string | Meta naming attribute. | |
$_metaPattern | string | A regex to filter meta tags. |
Method | Description | |
---|---|---|
__construct ( Essence\Http\Client $Http, |
Constructor. | |
setMetaAttribute ( $attribute ) | Sets the meta attribute | |
setMetaPattern ( string $pattern ) | Sets the filter pattern. |
Method | Description | |
---|---|---|
_extract ( $url, array $options ) | {@inheritDoc} | |
_extractMetas ( string $html ) : array | Extracts meta tags from the given HTML source. | |
_media ( array $metas ) : |
Builds a media from the given meta tags. |
public __construct ( Essence\Http\Client $Http, |
||
$Http | Essence\Http\Client | HTTP client. |
$Dom | DOM parser. |
protected _extractMetas ( string $html ) : array | ||
$html | string | HTML. |
return | array | Meta tags. |
public setMetaAttribute ( $attribute ) | ||
$attribute |
public setMetaPattern ( string $pattern ) | ||
$pattern | string | Pattern. |
protected Native,Essence\Dom\Document\Factory $_Dom | ||
return |
protected Client,Essence\Http $_Http | ||
return | Essence\Http\Client |
protected string $_metaAttribute | ||
return | string |
protected string $_metaPattern | ||
return | string |