Property | Type | Description | |
---|---|---|---|
$_Dom | DOM parser. | ||
$_Http | Essence\Http\Client | HTTP client. | |
$_endpoint | string | The OEmbed endpoint. | |
$_format | string | The expected response format. |
Method | Description | |
---|---|---|
__construct ( Essence\Http\Client $Http, |
Constructor. | |
setEndpoint ( string $endpoint ) | Sets the endpoint. | |
setFormat ( string $format ) | Sets the response format. |
Method | Description | |
---|---|---|
_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. |
return | Configuration. |
protected _extractConfig ( string $html ) : array | ||
$html | string | HTML page. |
return | array | Configuration. |
protected _extractFormat ( |
||
$Link | Link tag. | |
return | string|null Format. |
public setEndpoint ( string $endpoint ) | ||
$endpoint | string | Endpoint. |
protected Native,Essence\Dom\Document\Factory $_Dom | ||
return |
protected Client,Essence\Http $_Http | ||
return | Essence\Http\Client |
protected string $_format | ||
return | string |