You are here

class KalturaUserService in Kaltura 6.2

Hierarchy

Expanded class hierarchy of KalturaUserService

File

kaltura_client/KalturaClient.php, line 4332

View source
class KalturaUserService extends KalturaServiceBase {
  function __construct(KalturaClient $client) {
    parent::__construct($client);
  }
  function add(KalturaUser $user) {
    $kparams = array();
    $this->client
      ->addParam($kparams, "user", $user
      ->toParams());
    $this->client
      ->queueServiceActionCall("user", "add", $kparams);
    if ($this->client
      ->isMultiRequest()) {
      return null;
    }
    $resultObject = $this->client
      ->doQueue();
    $this->client
      ->throwExceptionIfError($resultObject);
    $this->client
      ->validateObjectType($resultObject, "KalturaUser");
    return $resultObject;
  }
  function update($userId, KalturaUser $user) {
    $kparams = array();
    $this->client
      ->addParam($kparams, "userId", $userId);
    $this->client
      ->addParam($kparams, "user", $user
      ->toParams());
    $this->client
      ->queueServiceActionCall("user", "update", $kparams);
    if ($this->client
      ->isMultiRequest()) {
      return null;
    }
    $resultObject = $this->client
      ->doQueue();
    $this->client
      ->throwExceptionIfError($resultObject);
    $this->client
      ->validateObjectType($resultObject, "KalturaUser");
    return $resultObject;
  }
  function get($userId) {
    $kparams = array();
    $this->client
      ->addParam($kparams, "userId", $userId);
    $this->client
      ->queueServiceActionCall("user", "get", $kparams);
    if ($this->client
      ->isMultiRequest()) {
      return null;
    }
    $resultObject = $this->client
      ->doQueue();
    $this->client
      ->throwExceptionIfError($resultObject);
    $this->client
      ->validateObjectType($resultObject, "KalturaUser");
    return $resultObject;
  }
  function delete($userId) {
    $kparams = array();
    $this->client
      ->addParam($kparams, "userId", $userId);
    $this->client
      ->queueServiceActionCall("user", "delete", $kparams);
    if ($this->client
      ->isMultiRequest()) {
      return null;
    }
    $resultObject = $this->client
      ->doQueue();
    $this->client
      ->throwExceptionIfError($resultObject);
    $this->client
      ->validateObjectType($resultObject, "KalturaUser");
    return $resultObject;
  }
  function listAction(KalturaUserFilter $filter = null, KalturaFilterPager $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("user", "list", $kparams);
    if ($this->client
      ->isMultiRequest()) {
      return null;
    }
    $resultObject = $this->client
      ->doQueue();
    $this->client
      ->throwExceptionIfError($resultObject);
    $this->client
      ->validateObjectType($resultObject, "KalturaUserListResponse");
    return $resultObject;
  }

}

Members