\Oembed_Result
Synopsis
class Oembed_Result
extends ViewableData
{
- // members
- protected boolean $data = false;
- protected boolean $origin = false;
- protected boolean $type = false;
- protected $url;
- protected $extraClass;
- private static array $casting = ;
- // methods
- public void __construct()
- public void getOembedURL()
- protected void loadData()
- public string findThumbnail()
- public void hasField()
- public void getField()
- public void forTemplate()
- public void exists()
Hierarchy
Extends
- ViewableData
Members
private
- $casting
protected
-
$data
JSON data fetched from the Oembed URL. -
$extraClass
Class to be injected into the resulting HTML element. -
$origin
Human readable URL -
$type
? -
$url
Oembed URL
Methods
protected
- loadData() — Fetches the JSON data from the Oembed URL (cached).
public
- __construct()
- exists()
- findThumbnail() — Find thumbnail if omitted from data
- forTemplate()
- getField() — Wrap the field calls to fetch data from Oembed JSON (within $this->data)
- getOembedURL()
- hasField() — Wrap the check for looking into Oembed JSON within $this->data.