public function video_phpvideotoolkit::load_job in Video 7
Interface Implementations
Overrides transcoder_interface::load_job
See also
sites/all/modules/video/includes/transcoder_interface#load_job()
2 calls to video_phpvideotoolkit::load_job()
- video_phpvideotoolkit::delete_job in transcoders/
video_phpvideotoolkit.inc - Interface Implementations
- video_phpvideotoolkit::load_completed_job in transcoders/
video_phpvideotoolkit.inc - Interface Implementations
File
- transcoders/
video_phpvideotoolkit.inc, line 496
Class
Code
public function load_job($fid) {
$job = null;
$job = db_query("SELECT f.*, vf.vid, vf.nid, vf.dimensions, vf.data, vf.status as video_status\n FROM {video_files} vf LEFT JOIN {file_managed} f ON vf.fid = f.fid WHERE f.fid=vf.fid AND f.fid = :fid", array(
':fid' => $fid,
))
->fetch();
if (!empty($job)) {
return $job;
}
else {
return FALSE;
}
}