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; } }
/** * Retrieve playlist for playing purpose * * * @return array */ 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; }