class KalturaPartnerService in Kaltura 6.2
Hierarchy
- class \KalturaServiceBase
- class \KalturaPartnerService
Expanded class hierarchy of KalturaPartnerService
File
- kaltura_client/
KalturaClient.php, line 4551
View source
class KalturaPartnerService extends KalturaServiceBase {
function __construct(KalturaClient $client) {
parent::__construct($client);
}
function register(KalturaPartner $partner, $cmsPassword = "") {
$kparams = array();
$this->client
->addParam($kparams, "partner", $partner
->toParams());
$this->client
->addParam($kparams, "cmsPassword", $cmsPassword);
$this->client
->queueServiceActionCall("partner", "register", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaPartner");
return $resultObject;
}
function update(KalturaPartner $partner, $allowEmpty = false) {
$kparams = array();
$this->client
->addParam($kparams, "partner", $partner
->toParams());
$this->client
->addParam($kparams, "allowEmpty", $allowEmpty);
$this->client
->queueServiceActionCall("partner", "update", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaPartner");
return $resultObject;
}
function getSecrets($partnerId, $adminEmail, $cmsPassword) {
$kparams = array();
$this->client
->addParam($kparams, "partnerId", $partnerId);
$this->client
->addParam($kparams, "adminEmail", $adminEmail);
$this->client
->addParam($kparams, "cmsPassword", $cmsPassword);
$this->client
->queueServiceActionCall("partner", "getSecrets", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaPartner");
return $resultObject;
}
function getInfo() {
$kparams = array();
$this->client
->queueServiceActionCall("partner", "getInfo", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaPartner");
return $resultObject;
}
function getUsage($year = "", $month = 1, $resolution = "days") {
$kparams = array();
$this->client
->addParam($kparams, "year", $year);
$this->client
->addParam($kparams, "month", $month);
$this->client
->addParam($kparams, "resolution", $resolution);
$this->client
->queueServiceActionCall("partner", "getUsage", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaPartnerUsage");
return $resultObject;
}
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
KalturaPartnerService:: |
function | |||
KalturaPartnerService:: |
function | |||
KalturaPartnerService:: |
function | |||
KalturaPartnerService:: |
function | |||
KalturaPartnerService:: |
function | |||
KalturaPartnerService:: |
function |
* Initialize the service keeping reference to the KalturaClient
*
* Overrides KalturaServiceBase:: |
||
KalturaServiceBase:: |
protected | property | * |