프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$_Dom | DOM parser. | ||
$_Http | Essence\Http\Client | HTTP client. | |
$_metaAttribute | string | Meta naming attribute. | |
$_metaPattern | string | A regex to filter meta tags. |
메소드 | 설명 | |
---|---|---|
__construct ( Essence\Http\Client $Http, |
Constructor. | |
setMetaAttribute ( $attribute ) | Sets the meta attribute | |
setMetaPattern ( string $pattern ) | Sets the filter pattern. |
메소드 | 설명 | |
---|---|---|
_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. |
리턴 | array | Meta tags. |
public setMetaPattern ( string $pattern ) | ||
$pattern | string | Pattern. |
protected Native,Essence\Dom\Document\Factory $_Dom | ||
리턴 |