public static function fromEntryArray($arr) { $newArr = new KalturaLiveStreamEntryArray(); if ($arr == null) { return $newArr; } foreach ($arr as $obj) { $nObj = new KalturaLiveStreamEntry(); $nObj->fromObject($obj); $newArr[] = $nObj; } return $newArr; }
/** * Update live stream entry. Only the properties that were set will be updated. * * @param string $entryId Live stream entry id to update * @param KalturaLiveStreamEntry $liveStreamEntry Live stream entry metadata to update * @return KalturaLiveStreamEntry */ function update($entryId, KalturaLiveStreamEntry $liveStreamEntry) { $kparams = array(); $this->client->addParam($kparams, "entryId", $entryId); $this->client->addParam($kparams, "liveStreamEntry", $liveStreamEntry->toParams()); $this->client->queueServiceActionCall("livestream", "update", $kparams); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultObject = $this->client->doQueue(); $this->client->throwExceptionIfError($resultObject); $this->client->validateObjectType($resultObject, "KalturaLiveStreamEntry"); return $resultObject; }
public function getMapBetweenObjects() { return array_merge(parent::getMapBetweenObjects(), self::$map_between_objects); }