Esempio n. 1
0
 public static function statusFromSchedulerArray($arr)
 {
     $newArr = new KalturaSchedulerArray();
     foreach ($arr as $obj) {
         $nObj = new KalturaScheduler();
         $nObj->statusFromObject($obj);
         $newArr[] = $nObj;
     }
     return $newArr;
 }
Esempio n. 2
0
 function configLoaded(KalturaScheduler $scheduler, $configParam, $configValue, $configParamPart = "", $workerConfigId = "", $workerName = "")
 {
     $kparams = array();
     $this->client->addParam($kparams, "scheduler", $scheduler->toParams());
     $this->client->addParam($kparams, "configParam", $configParam);
     $this->client->addParam($kparams, "configValue", $configValue);
     $this->client->addParam($kparams, "configParamPart", $configParamPart);
     $this->client->addParam($kparams, "workerConfigId", $workerConfigId);
     $this->client->addParam($kparams, "workerName", $workerName);
     $this->client->queueServiceActionCall("batchcontrol", "configLoaded", $kparams);
     if ($this->client->isMultiRequest()) {
         return null;
     }
     $resultObject = $this->client->doQueue();
     $this->client->throwExceptionIfError($resultObject);
     $this->client->validateObjectType($resultObject, "KalturaSchedulerConfig");
     return $resultObject;
 }