Sunnysideup\Vimeoembed\Model\VimeoDataObject
- Author: nicolaas[at]sunnysideup.co.nz
Synopsis
class VimeoDataObject
extends DataObject
{
- // members
- protected array $dataAsArray = ;
- protected array $variables = ;
- private static array $db = ;
- private static string $table_name = 'VimeoEmbed';
- private static array $casting = ;
- private static array $searchable_fields = ;
- private static array $summary_fields = ;
- private static string $singular_name = 'Vimeo Video';
- private static string $plural_name = 'Vimeo Videos';
- private static string $default_sort = 'Title ASC';
- private static string $vimeo_base_url = 'http://vimeo.com/api/oembed.xml?url=http%3A//vimeo.com/';
- private static $width = NULL;
- private static $maxwidth = NULL;
- private static $height = NULL;
- private static $maxheight = NULL;
- private static $byline = NULL;
- private static $title = NULL;
- private static $portrait = NULL;
- private static $color = NULL;
- private static $callback = NULL;
- private static $autoplay = NULL;
- private static $xhtml = NULL;
- private static $api = NULL;
- private static $wmode = NULL;
- private static $iframe;
- private boolean $doNotRetrieveData = false;
- // methods
- public void getCMSFields()
- public string getFullName()
- public Varchar MetaDataVariable()
- public Varchar getMetaDataVariable()
- public string getIcon()
- public string getIconLink()
- public string getFullImage()
- public string getFullImageLink()
- public string HTML()
- public void onBeforeWrite()
- public array safelyUnserialize()
- public string safelySerialize()
- protected array getDataAsArray()
- protected array updateData()
- private void my_xml2array()
- private void get_value_by_path()
Hierarchy
Extends
- SilverStripe\ORM\DataObject
Members
private
- $api
- $autoplay
- $byline
- $callback
- $casting
- $color
- $db
- $default_sort
- $doNotRetrieveData
—
boolean
do not retrieve data from vimeo server ... - $height
- $iframe
- $maxheight
- $maxwidth
- $plural_name
- $portrait
- $searchable_fields
- $singular_name
- $summary_fields
- $table_name
- $title
- $vimeo_base_url
- $width
- $wmode
- $xhtml
protected
- $dataAsArray
- $variables
Methods
private
protected
- getDataAsArray() — turns the saved serialized data into an array to return if there is no data then it will try to retrieve and save it then return it.
- updateData() — retrieves data from Vimeo Site
public
- HTML() — returns the HTML Embed code
- MetaDataVariable() — alias for getVariable
- getCMSFields()
- getFullImage() — return icon as <img tag>
- getFullImageLink() — returns icon as myimage.png
- getFullName() — casted variable
- getIcon() — return icon as <img tag>
- getIconLink() — returns icon as myimage.png
- getMetaDataVariable()
- onBeforeWrite()
- safelySerialize()
- safelyUnserialize()