프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$_Dom | DOM parser. | ||
$_Http | Essence\Http\Client | HTTP client. | |
$_endpoint | string | The OEmbed endpoint. | |
$_format | string | The expected response format. |
메소드 | 설명 | |
---|---|---|
__construct ( Essence\Http\Client $Http, |
Constructor. | |
setEndpoint ( string $endpoint ) | Sets the endpoint. | |
setFormat ( string $format ) | Sets the response format. |
메소드 | 설명 | |
---|---|---|
_buildConfig ( string $url ) : |
Builds an oEmbed configuration from settings. | |
_config ( string $url, array $options ) : |
Builds or extracts an oEmbed config. | |
_extract ( $url, array $options ) | {@inheritDoc} | |
_extractConfig ( string $html ) : array | Extracts an oEmbed configuration from the given page. | |
_extractFormat ( |
Extracts an oEmbed response format from a link tag. | |
_parse ( string $response, string $format ) : array | Parses the given response depending on its format. |
public __construct ( Essence\Http\Client $Http, |
||
$Http | Essence\Http\Client | HTTP client. |
$Dom | DOM parser. |
protected _buildConfig ( string $url ) : |
||
$url | string | URL to extract. |
리턴 | Configuration. |
protected _extractConfig ( string $html ) : array | ||
$html | string | HTML page. |
리턴 | array | Configuration. |
protected _extractFormat ( |
||
$Link | Link tag. | |
리턴 | string|null Format. |
public setEndpoint ( string $endpoint ) | ||
$endpoint | string | Endpoint. |
protected Native,Essence\Dom\Document\Factory $_Dom | ||
리턴 |