\VideoSliderItem
- Author: Donatas Navidonskis <donatas@navidonskis.com>
Synopsis
class VideoSliderItem
extends BaseSliderItem
{
- // members
- private static array $db = ;
- private static array $has_one = ;
- private static array $better_buttons_actions = ;
- private static array $embed_links = ;
- private static array $thumbnail_links = ;
- // methods
- public string getVideoType()
- public string singular_name()
- public string plural_name()
- public array getSliderTypes()
- public FieldList getCMSFields()
- public array fieldLabels()
- public static array labels()
- public string|false getVideoId()
- public bool|string getEmbedLink()
- protected ValidationResult validate()
- public Image|false getSliderImage()
- public FieldList getBetterButtonsActions()
- public false fetchVideosPicture()
- // Inherited methods from BaseSliderItem
- public array getHorizontallyTypes()
- public array getVerticallyTypes()
- public array getStyles()
- public string getHorizontalType()
- public string getLowerStyle()
- public string getVerticalType()
- public string singular_name()
- public string plural_name()
- public array summaryFields()
- public string getSliderType()
- public FieldList getCMSFields()
- public array fieldLabels()
- public HTMLText forTemplate()
- public false getSliderImage()
- public void getHeading()
Hierarchy
Extends
Tasks
Line | Task |
---|---|
23+ | implement https://github.com/xemle/html5-video-php package to convert webm and ogg videos when saving. |
Members
private
- $db — array
- $embed_links
—
array
Set providers default embed link. The key value should be equal within Type field value. - $has_one — array
- $thumbnail_links — array
Methods
protected
public
- fetchVideosPicture() — Fetching/downloading picture from the providers url address and saving as Image object.
- fieldLabels()
- getBetterButtonsActions() — Creating a button to fetch videos picture if cover image not exists.
- getCMSFields()
- getEmbedLink() — Get embed link by the set of Type field. Method depends by static::$embed_links property.
- getSliderImage()
- getSliderTypes()
- getVideoId() — This will get an id of the URL address or false if can't parsed, object type not one of supported providers or just empty url address field.
- getVideoType()
- labels()
- plural_name()
- singular_name()
Inherited from BaseSliderItem
public
- fieldLabels()
- forTemplate()
- getCMSFields()
- getHeading()
- getHorizontalType()
- getHorizontallyTypes() — Get localized types
- getLowerStyle()
- getSliderImage()
- getSliderType()
- getStyles() — Get localized types
- getVerticalType()
- getVerticallyTypes() — Get localized types
- plural_name()
- singular_name()
- summaryFields() — Default summary fields within localized label title's.