\Vidyard_Result
Synopsis
class Vidyard_Result
extends Oembed_Result
{
- // members
- protected $videoID;
- protected array $extraAttr = ;
- protected string $template = 'VidyardVideo';
- protected boolean $_useLightbox = false;
- // methods
- public void __construct()
- protected void loadData()
- public {string} forTemplate()
- public {Vidyard_Result} addExtraClass()
- public {array} getExtraClass()
- public {string} getExtraClassHTML()
- public {Vidyard_Result} setAttribute()
- public {array} getAttributes()
- public {string} getAttributesHTML()
- public {Vidyard_Result} setTemplate()
- public {string} getVideoID()
Hierarchy
Extends
- Oembed_Result
Members
protected
- $_useLightbox
- $extraAttr
- $template
- $videoID
Methods
protected
- loadData() — Fetches the JSON data from the Oembed URL (cached).
public
- __construct()
- addExtraClass() — Adds an extra css class to the element
- forTemplate() — Handles renderign this vidyard result object for use in the template
- getAttributes() — Gets the raw attributes to add
- getAttributesHTML() — Gets the attributes formatted for html
- getExtraClass() — Gets the raw extra classes array
- getExtraClassHTML() — Gets the extra classes formatted for html
- getVideoID() — Gets the video id in use
- setAttribute() — Sets an attribute on the element
- setTemplate() — Sets the template to be used for rendering this Vidyard video