You are here

function ZencoderJob::ZencoderJob in Video 7

File

modules/video_zencoder/includes/Zencoder.php, line 41

Class

ZencoderJob

Code

function ZencoderJob($params, $options = array()) {

  // Build using params if not sending request
  if ($options["build"]) {
    $this
      ->update_attributes($params);
    return true;
  }
  $this->new_job_params = $params;
  $this->created = $this
    ->create();
}