ilateral\SilverStripe\VideoLink\ORM\FieldType\DBVideoLink
Synopsis
class DBVideoLink
extends DBString
{
- // members
- private static array $casting = ;
- private static integer $embed_width = 600;
- private static integer $embed_height = 400;
- private static array $youtube_classes = ;
- private static array $vimeo_classes = ;
- // methods
- public void requireField()
- protected string getYouTubeID()
- protected string getVimeoID()
- public void Embed()
- protected void embedYoutube()
- protected void embedVimeo()
Hierarchy
Extends
- SilverStripe\ORM\FieldType\DBString
Members
private
- $casting
- $embed_height
—
integer
The physical height to set on all elements (such as img tags and video embeds). This will result in a height="xx" attribute being added to the element. - $embed_width
—
integer
The physical width to set on all elements (such as img tags and video embeds). This will result in a width="xx" attribute being added to the element. - $vimeo_classes
—
array
These classes are added to a div that wraps each youtube iframe - $youtube_classes
—
array
These classes are added to a div that wraps each youtube iframe
Methods
protected
- embedVimeo()
- embedYoutube()
- getVimeoID() — Get vimeo video ID from content
- getYouTubeID() — Get youtube video ID from content
public
- Embed()
- requireField() — (non-PHPdoc)