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;
 }
Exemplo n.º 2
0
 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;
 }