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 update($id, KalturaUser $user) { $kparams = array(); $this->client->addParam($kparams, "id", $id); $this->client->addParam($kparams, "user", $user->toParams()); $resultObject = $this->client->callService("user", "update", $kparams); $this->client->throwExceptionIfError($resultObject); $this->client->validateObjectType($resultObject, "KalturaUser"); return $resultObject; }