Свойство | Type | Description | |
---|---|---|---|
$_Dom | DOM parser. | ||
$_Http | Essence\Http\Client | HTTP client. | |
$_metaAttribute | string | Meta naming attribute. | |
$_metaPattern | string | A regex to filter meta tags. |
Méthode | Description | |
---|---|---|
__construct ( Essence\Http\Client $Http, |
Constructor. | |
setMetaAttribute ( $attribute ) | Sets the meta attribute | |
setMetaPattern ( string $pattern ) | Sets the filter pattern. |
Méthode | 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. |
Résultat | array | Meta tags. |
public setMetaAttribute ( $attribute ) | ||
$attribute |
public setMetaPattern ( string $pattern ) | ||
$pattern | string | Pattern. |
protected Native,Essence\Dom\Document\Factory $_Dom | ||
Résultat |
protected Client,Essence\Http $_Http | ||
Résultat | Essence\Http\Client |
protected string $_metaAttribute | ||
Résultat | string |
protected string $_metaPattern | ||
Résultat | string |