Class Videos - echiong/testRepo GitHub Wiki
##Class Videos
Videos class handles video type related operations.
Package: [[application<a href="Package application.controlllers.md">controlllers]]
Extends:
Framework_controller
Located at application/controllers/videos.php
##Methods summary
public __construct ( )
Constructor
###Overrides Framework_Controller::__construct()
public create ( mixed $success = null )
Displays the Videos create page.
public edit ( integer $id )
Displays the Video edit page.
Parameters
$id
integer
$id Videos record id.
public string edit_submit ( )
Method for videos edit submit.
Returns
string
Returns ok on success or an error message on failure.
public youtube_store ( )
End-point which handles videos create submission for youtube uploads.
Uses Components_model::create()
public string youtube_import ( )
End-point which handles videos create submission for youtube imports.
Returns
string
Returns ok id] on success or an error message on
failure.
Uses Components_model::create()
public object|string youtube_token ( )
End-point generates the youtube token.
Returns
object|string
JSON encoded object with url and token or an error message on failure.
public object youtube_videos ( )
Endpoint which grabs the list of current youtube videos in a user's account which have yet to be imported.
Returns
object
JSON encoded list of video information.
public string vimeo_token ( )
End-point generates the vimeo token.
Returns
string
Returns ok[url]::[token] on success or an error message on failure.
public string vimeo_store ( )
End-point which handles videos create submission for vimeo uploads.
Returns
string
Returns ok id] on success or an error message on
failure.
Uses Components_model::create()
public object vimeo_videos ( )
Endpoint which grabs the list of current vimeo videos in a user's account which have yet to be imported.
Returns
object
JSON encoded list of video information.
public string vimeo_import ( )
End-point which handles videos create submission for vimeo imports.
Returns
string
Returns ok id] on success or an error message on
failure.
Uses Components_model::create()
public get_list ( integer $offset = 0, integer $limit = 100 )
Returns a list of videos. NOTE: Deprecated: use components/get_list instead.
Parameters
$offset
integer
$offset Numeric offset value
$limit
integer
$limit Numeric limit value
Uses Components_model::get() Components_model::get_list()
public get ( integer $id, string $draggable = 'draggable' )
Displays a specific Video record detail.
Parameters
$id
integer
$id Videos record id.
$draggable
string
$draggable Flag to display the draggable DOM element ('draggable' for true)
public details ( integer $video_id )
Shows a specific video detail.
Parameters
$video_id
integer
$video_id Videos record id.
Methods inherited from CI_Controller
get_instance()