\CleanVideo
A DataObject for Videos Provides a video that can either be embeded through a service api or through its own embed code.
- Author: arillo
Synopsis
class CleanVideo
extends DataObject
{
- // members
- private static array $db = ;
- private static array $has_one = ;
- public static array $allowed_extensions = ;
- public static string $upload_folder = 'Videos';
- public static boolean $use_video_upload = true;
- // methods
- public CleanVideo_Validator getValidator()
- public string VideoEmbed()
- public void getCMSFields()
- public string getVideoFileName()
- public string VideoID()
- public void IsYoutube()
Hierarchy
Extends
- DataObject
Members
private
- $db
- $has_one
public
- $allowed_extensions
—
array
Allowed file extensions for uploading. - $upload_folder
—
string
Specifies a custom upload folder name. - $use_video_upload
Methods
public
- IsYoutube()
- VideoEmbed() — Returns the actual video embed code.
- VideoID() — Getter for the service's video id.
- getCMSFields()
- getValidator() — Returns custom validator
- getVideoFileName() — Getter for the video file name