public function __construct(SimpleXMLElement $xml = null) { parent::__construct($xml); if (is_null($xml)) { return; } $this->entryId = (string) $xml->entryId; }
public function __construct(SimpleXMLElement $xml = null) { parent::__construct($xml); if (is_null($xml)) { return; } $this->entryId = (string) $xml->entryId; if (count($xml->followEntryRedirect)) { $this->followEntryRedirect = (int) $xml->followEntryRedirect; } }
function execute($id, $detailed = "", Kaltura_Client_Type_Context $playlistContext = null, Kaltura_Client_Type_MediaEntryFilterForPlaylist $filter = null) { $kparams = array(); $this->client->addParam($kparams, "id", $id); $this->client->addParam($kparams, "detailed", $detailed); if ($playlistContext !== null) { $this->client->addParam($kparams, "playlistContext", $playlistContext->toParams()); } if ($filter !== null) { $this->client->addParam($kparams, "filter", $filter->toParams()); } $this->client->queueServiceActionCall("playlist", "execute", $kparams); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultObject = $this->client->doQueue(); $this->client->throwExceptionIfError($resultObject); if (!$resultObject) { $resultObject = array(); } $this->client->validateObjectType($resultObject, "array"); return $resultObject; }
function execute($id, $detailed = "", Kaltura_Client_Type_Context $playlistContext = null, Kaltura_Client_Type_MediaEntryFilterForPlaylist $filter = null) { $kparams = array(); $this->client->addParam($kparams, "id", $id); $this->client->addParam($kparams, "detailed", $detailed); if ($playlistContext !== null) { $this->client->addParam($kparams, "playlistContext", $playlistContext->toParams()); } if ($filter !== null) { $this->client->addParam($kparams, "filter", $filter->toParams()); } $this->client->queueServiceActionCall("playlist", "execute", "KalturaBaseEntry", $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::unmarshalArray($resultXmlObject->result, "KalturaBaseEntry"); $this->client->validateObjectType($resultObject, "array"); return $resultObject; }