public function video_zencoder_api::load_job in Video 7
File
- modules/
video_zencoder/ includes/ zencoder.inc, line 196
Class
Code
public function load_job($jobid) {
$job = db_query("SELECT f.*, vf.vid, vf.nid, vf.dimensions, vf.data, vf.status as video_status\n FROM {video_zencoder} vf LEFT JOIN {file_managed} f ON vf.fid = f.fid WHERE f.fid=vf.fid AND f.jobid = :jobid", array(
':jobid' => $jobid,
))
->fetch();
if (!empty($job)) {
return $job;
}
else {
return FALSE;
}
}