class KalturaUserService in Kaltura 6.2
Hierarchy
- class \KalturaServiceBase
- class \KalturaUserService
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
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
KalturaServiceBase:: |
protected | property | * | |
KalturaUserService:: |
function | |||
KalturaUserService:: |
function | |||
KalturaUserService:: |
function | |||
KalturaUserService:: |
function | |||
KalturaUserService:: |
function | |||
KalturaUserService:: |
function |
* Initialize the service keeping reference to the KalturaClient
*
* Overrides KalturaServiceBase:: |