public function __construct(\SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     if (count($xml->groupTypeEq)) {
         $this->groupTypeEq = (int) $xml->groupTypeEq;
     }
     $this->groupTypeIn = (string) $xml->groupTypeIn;
     $this->partnerPermissionsExist = (string) $xml->partnerPermissionsExist;
 }
Пример #2
0
 /**
  * Function which calulates partner usage of a group of a VAR's sub-publishers
  *      
  * 
  * @return \Kaltura\Client\Plugin\VarConsole\Type\PartnerUsageListResponse
  */
 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\\Plugin\\VarConsole\\Type\\PartnerUsageListResponse");
     return $resultObject;
 }
Пример #3
0
 /**
  * Count partner's existing sub-publishers (count includes the partner itself).
  * 	 
  * 
  * @return int
  */
 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;
 }
 /**
  * 
  * @return \Kaltura\Client\Plugin\EventNotification\Type\EventNotificationTemplateListResponse
  */
 function listByPartner(\Kaltura\Client\Type\PartnerFilter $filter = null, \Kaltura\Client\Type\FilterPager $pager = null)
 {
     $kparams = array();
     if ($filter !== null) {
         $this->client->addParam($kparams, "filter", $filter->toParams());
     }
     if ($pager !== null) {
         $this->client->addParam($kparams, "pager", $pager->toParams());
     }
     $this->client->queueServiceActionCall("eventnotification_eventnotificationtemplate", "listByPartner", "KalturaEventNotificationTemplateListResponse", $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, "KalturaEventNotificationTemplateListResponse");
     $this->client->validateObjectType($resultObject, "\\Kaltura\\Client\\Plugin\\EventNotification\\Type\\EventNotificationTemplateListResponse");
     return $resultObject;
 }