public function __construct(\SimpleXMLElement $xml = null) { parent::__construct($xml); if (is_null($xml)) { return; } }
/** * Update live stream entry. Only the properties that were set will be updated. * * * @return \Kaltura\Client\Type\LiveStreamEntry */ function update($entryId, \Kaltura\Client\Type\LiveStreamEntry $liveStreamEntry) { $kparams = array(); $this->client->addParam($kparams, "entryId", $entryId); $this->client->addParam($kparams, "liveStreamEntry", $liveStreamEntry->toParams()); $this->client->queueServiceActionCall("livestream", "update", "KalturaLiveStreamEntry", $kparams); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultXml = $this->client->doQueue(); $resultXmlObject = new \SimpleXMLElement($resultXml); \Kaltura\Client\ParseUtils::checkIfError($resultXmlObject->result); $resultObject = \Kaltura\Client\ParseUtils::unmarshalObject($resultXmlObject->result, "KalturaLiveStreamEntry"); $this->client->validateObjectType($resultObject, "\\Kaltura\\Client\\Type\\LiveStreamEntry"); return $resultObject; }