class KalturaSessionService in Kaltura 6.2
Hierarchy
- class \KalturaServiceBase
- class \KalturaSessionService
Expanded class hierarchy of KalturaSessionService
File
- kaltura_client/
KalturaClient.php, line 4079
View source
class KalturaSessionService extends KalturaServiceBase {
function __construct(KalturaClient $client) {
parent::__construct($client);
}
function start($secret, $userId = "", $type = 0, $partnerId = -1, $expiry = 86400, $privileges = null) {
$kparams = array();
$this->client
->addParam($kparams, "secret", $secret);
$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", "start", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "string");
return $resultObject;
}
function startWidgetSession($widgetId, $expiry = 86400) {
$kparams = array();
$this->client
->addParam($kparams, "widgetId", $widgetId);
$this->client
->addParam($kparams, "expiry", $expiry);
$this->client
->queueServiceActionCall("session", "startWidgetSession", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaStartWidgetSessionResponse");
return $resultObject;
}
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
KalturaServiceBase:: |
protected | property | * | |
KalturaSessionService:: |
function | |||
KalturaSessionService:: |
function | |||
KalturaSessionService:: |
function |
* Initialize the service keeping reference to the KalturaClient
*
* Overrides KalturaServiceBase:: |