You are here

public function video_zencoder::load_job_by_jobid in Video 7

Load job by jobid

Return value

type

File

modules/video_zencoder/transcoders/video_zencoder.inc, line 335

Class

video_zencoder

Code

public function load_job_by_jobid($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;
  }
}