You are here

public function video_zencoder::load_job in Video 6.5

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

Overrides video_transcoder::load_job

2 calls to video_zencoder::load_job()
video_zencoder::generate_thumbnails in plugins/video_zencoder/transcoders/video_zencoder.inc
video_zencoder::update_job in plugins/video_zencoder/transcoders/video_zencoder.inc

File

plugins/video_zencoder/transcoders/video_zencoder.inc, line 478
Transcoder class file to handle Zencoder settings and conversions.

Class

video_zencoder

Code

public function load_job($fid) {
  $job = db_fetch_object(db_query('SELECT f.fid, f.filename, f.filepath, f.filemime, f.filesize, zc.vid, zc.nid, zc.dimensions, zc.status, zc.data, zc.jobid FROM {video_zencoder} zc INNER JOIN {files} f ON zc.fid = f.fid WHERE f.fid = %d', $fid));
  if (!empty($job)) {
    $job->data = unserialize($job->data);
    return $job;
  }
  return FALSE;
}