function ZencoderJob::create in Video 7
1 call to ZencoderJob::create()
- ZencoderJob::ZencoderJob in modules/
video_zencoder/ includes/ Zencoder.php
File
- modules/
video_zencoder/ includes/ Zencoder.php, line 54
Class
Code
function create() {
// Send request
$request = new ZencoderRequest($this->new_job_url, false, $this->new_job_params);
if ($request->successful) {
$this
->update_attributes($request->results);
return true;
}
else {
$this->errors = array_merge($this->errors, $request->errors);
return false;
}
}