public static function fromMailJobArray($arr)
 {
     $newArr = new KalturaMailJobArray();
     foreach ($arr as $obj) {
         $nObj = new KalturaMailJob();
         $nObj->fromMailJob($obj);
         $newArr[] = $nObj;
     }
     return $newArr;
 }
Example #2
0
 function updateExclusiveMailJob($id, $processorLocation, $pocessorName, KalturaMailJob $mailJob)
 {
     $kparams = array();
     $this->client->addParam($kparams, "id", $id);
     $this->client->addParam($kparams, "processorLocation", $processorLocation);
     $this->client->addParam($kparams, "pocessorName", $pocessorName);
     $this->client->addParam($kparams, "mailJob", $mailJob->toParams());
     $this->client->queueServiceActionCall("batch", "updateExclusiveMailJob", $kparams);
     if ($this->client->isMultiRequest()) {
         return null;
     }
     $resultObject = $this->client->doQueue();
     $this->client->throwExceptionIfError($resultObject);
     $this->client->validateObjectType($resultObject, "KalturaMailJob");
     return $resultObject;
 }