public static function fromNotificationArray($arr)
 {
     $newArr = new KalturaNotificationArray();
     foreach ($arr as $obj) {
         $nObj = new KalturaNotification();
         $nObj->fromNotification($obj);
         $newArr[] = $nObj;
     }
     return $newArr;
 }
Exemple #2
0
 function freeExclusiveNotificationJob($id, $processorLocation, $pocessorName, KalturaNotification $notificationJob = null)
 {
     $kparams = array();
     $this->client->addParam($kparams, "id", $id);
     $this->client->addParam($kparams, "processorLocation", $processorLocation);
     $this->client->addParam($kparams, "pocessorName", $pocessorName);
     if ($notificationJob !== null) {
         $this->client->addParam($kparams, "notificationJob", $notificationJob->toParams());
     }
     $this->client->queueServiceActionCall("batch", "freeExclusiveNotificationJob", $kparams);
     if ($this->client->isMultiRequest()) {
         return null;
     }
     $resultObject = $this->client->doQueue();
     $this->client->throwExceptionIfError($resultObject);
     $this->client->validateObjectType($resultObject, "KalturaBatchJob");
     return $resultObject;
 }