public function __construct(SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     $this->application = (string) $xml->application;
     $this->userIds = (string) $xml->userIds;
     $this->playbackContext = (string) $xml->playbackContext;
 }
 function getPartnerUsage(Kaltura_Client_Type_PartnerFilter $partnerFilter = null, Kaltura_Client_Type_ReportInputFilter $usageFilter = null, Kaltura_Client_Type_FilterPager $pager = null)
 {
     $kparams = array();
     if ($partnerFilter !== null) {
         $this->client->addParam($kparams, "partnerFilter", $partnerFilter->toParams());
     }
     if ($usageFilter !== null) {
         $this->client->addParam($kparams, "usageFilter", $usageFilter->toParams());
     }
     if ($pager !== null) {
         $this->client->addParam($kparams, "pager", $pager->toParams());
     }
     $this->client->queueServiceActionCall("varconsole_varconsole", "getPartnerUsage", $kparams);
     if ($this->client->isMultiRequest()) {
         return $this->client->getMultiRequestResult();
     }
     $resultObject = $this->client->doQueue();
     $this->client->throwExceptionIfError($resultObject);
     $this->client->validateObjectType($resultObject, "Kaltura_Client_VarConsole_Type_PartnerUsageListResponse");
     return $resultObject;
 }
 function getPartnerUsage(Kaltura_Client_Type_PartnerFilter $partnerFilter = null, Kaltura_Client_Type_ReportInputFilter $usageFilter = null, Kaltura_Client_Type_FilterPager $pager = null)
 {
     $kparams = array();
     if ($partnerFilter !== null) {
         $this->client->addParam($kparams, "partnerFilter", $partnerFilter->toParams());
     }
     if ($usageFilter !== null) {
         $this->client->addParam($kparams, "usageFilter", $usageFilter->toParams());
     }
     if ($pager !== null) {
         $this->client->addParam($kparams, "pager", $pager->toParams());
     }
     $this->client->queueServiceActionCall("varconsole_varconsole", "getPartnerUsage", "KalturaPartnerUsageListResponse", $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, "KalturaPartnerUsageListResponse");
     $this->client->validateObjectType($resultObject, "Kaltura_Client_VarConsole_Type_PartnerUsageListResponse");
     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", $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, "string");
     return $resultObject;
 }
예제 #5
0
 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;
 }