You are here

public function video_zencoder::load_job in Video 7

Same name and namespace in other branches
  1. 6.5 plugins/video_zencoder/transcoders/video_zencoder.inc \video_zencoder::load_job()
  2. 6.4 plugins/video_zencoder/transcoders/video_zencoder.inc \video_zencoder::load_job()

Interface Implementations

Overrides transcoder_interface::load_job

See also

sites/all/modules/video/includes/transcoder_interface#load_job()

2 calls to video_zencoder::load_job()
video_zencoder::delete_job in modules/video_zencoder/transcoders/video_zencoder.inc
Interface Implementations
video_zencoder::load_completed_job in modules/video_zencoder/transcoders/video_zencoder.inc
Interface Implementations

File

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

Class

video_zencoder

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_zencoder} 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;
  }
}