Videos Class & Functions

//Class is initated as  $vdo
$vdo->get_video($videoid);

Absolute Path of the Class File /includes/classes/videos.class.php

Absolute Path of teh functions file /includes/functions_videos.php

For Some Odd Reason, I know. submit_upload (Add Video Method) was written in /includes/class/upload.class.php

Object MethodsFunctionsPurpose

::get_basic_fields()

::video_exists(int $video)

video_exists(int $videoid);

::get_video(int $vid, bool $file, bool $basic)

$vid = videoid

$file = if set to true $vid will be searched in file_name column instead of videoid column

$basic = if set to true, only basic fields are returned

get_video(); same has ::getVideo

::get_video(int $videoid)

get_video(int $vid)

get video details

::video_exists(int $vid)

video_exists(int $vid);

check if video exists

::action($case, $videoid)

Case Values

activate

deactivate

feature

unfeature

::delete_video(int $vid)

::get_videos(array $params)

get_videos()

Get list of videos

Last updated