You are here

class ZencoderOutputNotification in Video 7

Hierarchy

Expanded class hierarchy of ZencoderOutputNotification

File

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

View source
class ZencoderOutputNotification {
  var $output;
  var $job;
  function ZencoderOutputNotification($params) {
    if ($params["output"]) {
      $this->output = new ZencoderOutputFile($params["output"]);
    }
    if ($params["job"]) {
      $this->job = new ZencoderJob($params["job"], array(
        "build" => true,
      ));
    }
  }
  function catch_and_parse() {
    $notificiation_data = json_decode(trim(file_get_contents('php://input')), true);
    return new ZencoderOutputNotification($notificiation_data);
  }

}

Members