You are here

class KalturaSessionService in Kaltura 6.2

Hierarchy

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

Namesort descending Modifiers Type Description Overrides
KalturaServiceBase::$client protected property *
KalturaSessionService::start function
KalturaSessionService::startWidgetSession function
KalturaSessionService::__construct function * Initialize the service keeping reference to the KalturaClient * * Overrides KalturaServiceBase::__construct