function getTime() { $kparams = array(); $this->client->queueServiceActionCall("system", "getTime", null, $kparams); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultXml = $this->client->doQueue(); $resultXmlObject = new \SimpleXMLElement($resultXml); Kaltura_Client_ParseUtils::checkIfError($resultXmlObject->result); $resultObject = (int) Kaltura_Client_ParseUtils::unmarshalSimpleType($resultXmlObject->result); return $resultObject; }
function getFaspUrl($flavorAssetId) { $kparams = array(); $this->client->addParam($kparams, "flavorAssetId", $flavorAssetId); $this->client->queueServiceActionCall("aspera_aspera", "getFaspUrl", null, $kparams); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultXml = $this->client->doQueue(); $resultXmlObject = new \SimpleXMLElement($resultXml); Kaltura_Client_ParseUtils::checkIfError($resultXmlObject->result); $resultObject = (string) Kaltura_Client_ParseUtils::unmarshalSimpleType($resultXmlObject->result); return $resultObject; }
function collect(Kaltura_Client_Type_StatsEvent $event) { $kparams = array(); $this->client->addParam($kparams, "event", $event->toParams()); $this->client->queueServiceActionCall("stats", "collect", null, $kparams); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultXml = $this->client->doQueue(); $resultXmlObject = new \SimpleXMLElement($resultXml); Kaltura_Client_ParseUtils::checkIfError($resultXmlObject->result); $resultObject = (bool) Kaltura_Client_ParseUtils::unmarshalSimpleType($resultXmlObject->result); return $resultObject; }
function checkLikeExists($entryId, $userId = null) { $kparams = array(); $this->client->addParam($kparams, "entryId", $entryId); $this->client->addParam($kparams, "userId", $userId); $this->client->queueServiceActionCall("like_like", "checkLikeExists", null, $kparams); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultXml = $this->client->doQueue(); $resultXmlObject = new \SimpleXMLElement($resultXml); Kaltura_Client_ParseUtils::checkIfError($resultXmlObject->result); $resultObject = (bool) Kaltura_Client_ParseUtils::unmarshalSimpleType($resultXmlObject->result); return $resultObject; }
function upload($fileData) { $kparams = array(); $kfiles = array(); $this->client->addParam($kfiles, "fileData", $fileData); $this->client->queueServiceActionCall("upload", "upload", null, $kparams, $kfiles); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultXml = $this->client->doQueue(); $resultXmlObject = new \SimpleXMLElement($resultXml); Kaltura_Client_ParseUtils::checkIfError($resultXmlObject->result); $resultObject = (string) Kaltura_Client_ParseUtils::unmarshalSimpleType($resultXmlObject->result); return $resultObject; }
function xAddBulkDownload($entryIds, $flavorParamsId = "") { $kparams = array(); $this->client->addParam($kparams, "entryIds", $entryIds); $this->client->addParam($kparams, "flavorParamsId", $flavorParamsId); $this->client->queueServiceActionCall("xinternal", "xAddBulkDownload", null, $kparams); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultXml = $this->client->doQueue(); $resultXmlObject = new \SimpleXMLElement($resultXml); Kaltura_Client_ParseUtils::checkIfError($resultXmlObject->result); $resultObject = (string) Kaltura_Client_ParseUtils::unmarshalSimpleType($resultXmlObject->result); return $resultObject; }
function login($email, $password, $partnerId = null) { $kparams = array(); $this->client->addParam($kparams, "email", $email); $this->client->addParam($kparams, "password", $password); $this->client->addParam($kparams, "partnerId", $partnerId); $this->client->queueServiceActionCall("adminuser", "login", null, $kparams); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultXml = $this->client->doQueue(); $resultXmlObject = new \SimpleXMLElement($resultXml); Kaltura_Client_ParseUtils::checkIfError($resultXmlObject->result); $resultObject = (string) Kaltura_Client_ParseUtils::unmarshalSimpleType($resultXmlObject->result); return $resultObject; }
function getDownloadUrl($id, $useCdn = false) { $kparams = array(); $this->client->addParam($kparams, "id", $id); $this->client->addParam($kparams, "useCdn", $useCdn); $this->client->queueServiceActionCall("flavorasset", "getDownloadUrl", null, $kparams); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultXml = $this->client->doQueue(); $resultXmlObject = new \SimpleXMLElement($resultXml); Kaltura_Client_ParseUtils::checkIfError($resultXmlObject->result); $resultObject = (string) Kaltura_Client_ParseUtils::unmarshalSimpleType($resultXmlObject->result); return $resultObject; }
public function doMultiRequest() { $xmlData = $this->doQueue(); if (is_null($xmlData)) { return null; } $xml = new SimpleXMLElement($xmlData); $items = $xml->result->children(); $ret = array(); $i = 0; foreach ($items as $item) { $error = Kaltura_Client_ParseUtils::checkIfError($item, false); if ($error) { $ret[] = $error; } else { if ($item->objectType) { $ret[] = Kaltura_Client_ParseUtils::unmarshalObject($item, $this->multiRequestReturnType[$i]); } else { if ($item->item) { $ret[] = Kaltura_Client_ParseUtils::unmarshalArray($item, $this->multiRequestReturnType[$i]); } else { $ret[] = Kaltura_Client_ParseUtils::unmarshalSimpleType($item); } } } $i++; } $this->resetRequest(); return $ret; }
function isLive($id) { $kparams = array(); $this->client->addParam($kparams, "id", $id); $this->client->queueServiceActionCall("livechannel", "isLive", null, $kparams); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultXml = $this->client->doQueue(); $resultXmlObject = new \SimpleXMLElement($resultXml); Kaltura_Client_ParseUtils::checkIfError($resultXmlObject->result); $resultObject = (bool) Kaltura_Client_ParseUtils::unmarshalSimpleType($resultXmlObject->result); return $resultObject; }
function requestConversion($entryId, $fileFormat) { $kparams = array(); $this->client->addParam($kparams, "entryId", $entryId); $this->client->addParam($kparams, "fileFormat", $fileFormat); $this->client->queueServiceActionCall("media", "requestConversion", null, $kparams); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultXml = $this->client->doQueue(); $resultXmlObject = new \SimpleXMLElement($resultXml); Kaltura_Client_ParseUtils::checkIfError($resultXmlObject->result); $resultObject = (int) Kaltura_Client_ParseUtils::unmarshalSimpleType($resultXmlObject->result); return $resultObject; }
function getUrl($id, $storageId = null, Kaltura_Client_Type_ThumbParams $thumbParams = null) { $kparams = array(); $this->client->addParam($kparams, "id", $id); $this->client->addParam($kparams, "storageId", $storageId); if ($thumbParams !== null) { $this->client->addParam($kparams, "thumbParams", $thumbParams->toParams()); } $this->client->queueServiceActionCall("thumbasset", "getUrl", null, $kparams); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultXml = $this->client->doQueue(); $resultXmlObject = new \SimpleXMLElement($resultXml); Kaltura_Client_ParseUtils::checkIfError($resultXmlObject->result); $resultObject = (string) Kaltura_Client_ParseUtils::unmarshalSimpleType($resultXmlObject->result); return $resultObject; }
function index($entryId, $categoryId, $shouldUpdate = true) { $kparams = array(); $this->client->addParam($kparams, "entryId", $entryId); $this->client->addParam($kparams, "categoryId", $categoryId); $this->client->addParam($kparams, "shouldUpdate", $shouldUpdate); $this->client->queueServiceActionCall("categoryentry", "index", null, $kparams); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultXml = $this->client->doQueue(); $resultXmlObject = new \SimpleXMLElement($resultXml); Kaltura_Client_ParseUtils::checkIfError($resultXmlObject->result); $resultObject = (int) Kaltura_Client_ParseUtils::unmarshalSimpleType($resultXmlObject->result); return $resultObject; }
function getUrlForReportAsCsv($reportTitle, $reportText, $headers, $reportType, Kaltura_Client_Type_ReportInputFilter $reportInputFilter, $dimension = null, Kaltura_Client_Type_FilterPager $pager = null, $order = null, $objectIds = null) { $kparams = array(); $this->client->addParam($kparams, "reportTitle", $reportTitle); $this->client->addParam($kparams, "reportText", $reportText); $this->client->addParam($kparams, "headers", $headers); $this->client->addParam($kparams, "reportType", $reportType); $this->client->addParam($kparams, "reportInputFilter", $reportInputFilter->toParams()); $this->client->addParam($kparams, "dimension", $dimension); if ($pager !== null) { $this->client->addParam($kparams, "pager", $pager->toParams()); } $this->client->addParam($kparams, "order", $order); $this->client->addParam($kparams, "objectIds", $objectIds); $this->client->queueServiceActionCall("report", "getUrlForReportAsCsv", null, $kparams); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultXml = $this->client->doQueue(); $resultXmlObject = new \SimpleXMLElement($resultXml); Kaltura_Client_ParseUtils::checkIfError($resultXmlObject->result); $resultObject = (string) Kaltura_Client_ParseUtils::unmarshalSimpleType($resultXmlObject->result); return $resultObject; }
function convertPptToSwf($entryId) { $kparams = array(); $this->client->addParam($kparams, "entryId", $entryId); $this->client->queueServiceActionCall("document", "convertPptToSwf", null, $kparams); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultXml = $this->client->doQueue(); $resultXmlObject = new \SimpleXMLElement($resultXml); Kaltura_Client_ParseUtils::checkIfError($resultXmlObject->result); $resultObject = (string) Kaltura_Client_ParseUtils::unmarshalSimpleType($resultXmlObject->result); return $resultObject; }
function count(Kaltura_Client_Type_PartnerFilter $filter = null) { $kparams = array(); if ($filter !== null) { $this->client->addParam($kparams, "filter", $filter->toParams()); } $this->client->queueServiceActionCall("partner", "count", null, $kparams); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultXml = $this->client->doQueue(); $resultXmlObject = new \SimpleXMLElement($resultXml); Kaltura_Client_ParseUtils::checkIfError($resultXmlObject->result); $resultObject = (int) Kaltura_Client_ParseUtils::unmarshalSimpleType($resultXmlObject->result); return $resultObject; }
function scan($flavorAssetId, $virusScanProfileId = null) { $kparams = array(); $this->client->addParam($kparams, "flavorAssetId", $flavorAssetId); $this->client->addParam($kparams, "virusScanProfileId", $virusScanProfileId); $this->client->queueServiceActionCall("virusscan_virusscanprofile", "scan", null, $kparams); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultXml = $this->client->doQueue(); $resultXmlObject = new \SimpleXMLElement($resultXml); Kaltura_Client_ParseUtils::checkIfError($resultXmlObject->result); $resultObject = (int) Kaltura_Client_ParseUtils::unmarshalSimpleType($resultXmlObject->result); return $resultObject; }
function impersonate($secret, $impersonatedPartnerId, $userId = "", $type = 0, $partnerId = null, $expiry = 86400, $privileges = null) { $kparams = array(); $this->client->addParam($kparams, "secret", $secret); $this->client->addParam($kparams, "impersonatedPartnerId", $impersonatedPartnerId); $this->client->addParam($kparams, "userId", $userId); $this->client->addParam($kparams, "type", $type); $this->client->addParam($kparams, "partnerId", $partnerId); $this->client->addParam($kparams, "expiry", $expiry); $this->client->addParam($kparams, "privileges", $privileges); $this->client->queueServiceActionCall("session", "impersonate", null, $kparams); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultXml = $this->client->doQueue(); $resultXmlObject = new \SimpleXMLElement($resultXml); Kaltura_Client_ParseUtils::checkIfError($resultXmlObject->result); $resultObject = (string) Kaltura_Client_ParseUtils::unmarshalSimpleType($resultXmlObject->result); return $resultObject; }
function dispatch($id, Kaltura_Client_EventNotification_Type_EventNotificationDispatchJobData $data) { $kparams = array(); $this->client->addParam($kparams, "id", $id); $this->client->addParam($kparams, "data", $data->toParams()); $this->client->queueServiceActionCall("eventnotification_eventnotificationtemplate", "dispatch", null, $kparams); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultXml = $this->client->doQueue(); $resultXmlObject = new \SimpleXMLElement($resultXml); Kaltura_Client_ParseUtils::checkIfError($resultXmlObject->result); $resultObject = (int) Kaltura_Client_ParseUtils::unmarshalSimpleType($resultXmlObject->result); return $resultObject; }
function checkLoginDataExists(Kaltura_Client_Type_UserLoginDataFilter $filter) { $kparams = array(); $this->client->addParam($kparams, "filter", $filter->toParams()); $this->client->queueServiceActionCall("user", "checkLoginDataExists", null, $kparams); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultXml = $this->client->doQueue(); $resultXmlObject = new \SimpleXMLElement($resultXml); Kaltura_Client_ParseUtils::checkIfError($resultXmlObject->result); $resultObject = (bool) Kaltura_Client_ParseUtils::unmarshalSimpleType($resultXmlObject->result); return $resultObject; }