public function video_ffmpeg::load_job in Video 7
Same name and namespace in other branches
- 6.4 transcoders/video_ffmpeg.inc \video_ffmpeg::load_job()
Interface Implementations
Overrides transcoder_interface::load_job
See also
sites/all/modules/video/includes/transcoder_interface#load_job()
3 calls to video_ffmpeg::load_job()
- video_ffmpeg::delete_job in transcoders/
video_ffmpeg.inc - Interface Implementations
- video_ffmpeg::load_completed_job in transcoders/
video_ffmpeg.inc - Interface Implementations
- video_ffmpeg_php::load_job in transcoders/
video_ffmpeg_php.inc - Interface Implementations
1 method overrides video_ffmpeg::load_job()
- video_ffmpeg_php::load_job in transcoders/
video_ffmpeg_php.inc - Interface Implementations
File
- transcoders/
video_ffmpeg.inc, line 466
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;
}
}