XD\Basic\Extensions\EmbedableVideo
Class EmbedableVideo
Synopsis
class EmbedableVideo
extends DataExtension
{
- // members
- private static array $db = ;
- private static array $has_one = ;
- private static array $owns = ;
- // methods
- public void updateCMSFields()
- public void onBeforeWrite()
- public void getPreview()
- public void getAjaxEmbedLink()
- public EmbedResource getVideoResource()
- public null|string getVideo()
- public VideoPreview|null savePreview()
Hierarchy
Extends
- SilverStripe\ORM\DataExtension
Members
private
- $db
- $has_one
- $owns
Methods
public
- getAjaxEmbedLink()
- getPreview()
- getVideo() — Get the embed code
- getVideoResource() — Get the Video Resource from the given URL
- onBeforeWrite()
- savePreview() — Save a preview image
- updateCMSFields()