You are here

function KalturaBatchService::addPreConvertJob in Kaltura 6.2

File

kaltura_client/KalturaClient.php, line 4841

Class

KalturaBatchService

Code

function addPreConvertJob(KalturaBatchJob $preConvertJob) {
  $kparams = array();
  $this->client
    ->addParam($kparams, "preConvertJob", $preConvertJob
    ->toParams());
  $this->client
    ->queueServiceActionCall("batch", "addPreConvertJob", $kparams);
  if ($this->client
    ->isMultiRequest()) {
    return null;
  }
  $resultObject = $this->client
    ->doQueue();
  $this->client
    ->throwExceptionIfError($resultObject);
  $this->client
    ->validateObjectType($resultObject, "KalturaBatchJob");
  return $resultObject;
}