src/Entity/XiboUser.php
public function edit($userId, $userName, $userTypeId, $homePageId, $newUserWizard, $hideNavigation, $newPassword = '', $retypeNewPassword = '', $email= '', $libraryQuota = 0, $isPasswordChangeRequired = 0, $firstName = '', $lastName = '', $phone = '', $ref1 = '', $ref2 = '', $ref3 = '', $ref4 = '', $ref5 = '')
    {
        $this->userId = $userId;
        $this->userName = $userName;
        $this->userTypeId = $userTypeId;
        $this->homePageId = $homePageId;
        $this->newPassword = $newPassword;
        $this->retypeNewPassword = $retypeNewPassword;
        $this->newUserWizard = $newUserWizard;
        $this->hideNavigation = $hideNavigation;
        $this->email = $email;
        $this->libraryQuota = $libraryQuota;
        $this->isPasswordChangeRequired = $isPasswordChangeRequired;
        $this->firstName = $firstName;
        $this->lastName = $lastName;
        $this->phone = $phone;
        $this->ref1 = $ref1;
        $this->ref2 = $ref2;
        $this->ref3 = $ref3;
        $this->ref4 = $ref4;
        $this->ref5 = $ref5;

        $this->getLogger()->info('Editing User ID ' . $userId);
        $response = $this->doPut('/user/' . $userId, $this->toArray());

        $this->getLogger()->debug('Passing the response to Hydrate');
        /** @var XiboUser $user */
        $user = $this->hydrate($response);

        return $user;
    }
public function edit($userId, $userName, $userTypeId, $homePageId, $newUserWizard, $hideNavigation, $newPassword = '', $retypeNewPassword = '', $email= '', $libraryQuota = 0, $isPasswordChangeRequired = 0, $firstName = '', $lastName = '', $phone = '', $ref1 = '', $ref2 = '', $ref3 = '', $ref4 = '', $ref5 = '')
    {
        $this->userId = $userId;
        $this->userName = $userName;
        $this->userTypeId = $userTypeId;
        $this->homePageId = $homePageId;
        $this->newPassword = $newPassword;
        $this->retypeNewPassword = $retypeNewPassword;
        $this->newUserWizard = $newUserWizard;
        $this->hideNavigation = $hideNavigation;
        $this->email = $email;
        $this->libraryQuota = $libraryQuota;
        $this->isPasswordChangeRequired = $isPasswordChangeRequired;
        $this->firstName = $firstName;
        $this->lastName = $lastName;
        $this->phone = $phone;
        $this->ref1 = $ref1;
        $this->ref2 = $ref2;
        $this->ref3 = $ref3;
        $this->ref4 = $ref4;
        $this->ref5 = $ref5;

        $this->getLogger()->info('Editing User ID ' . $userId);
        $response = $this->doPut('/user/' . $userId, $this->toArray());

        $this->getLogger()->debug('Passing the response to Hydrate');
        /** @var XiboUser $user */
        $user = $this->hydrate($response);

        return $user;
    }
public function edit ( $ userId , $ userName , $ userTypeId , $ homePageId , $ newUserWizard , $ hideNavigation , $ newPassword = '' , $ retypeNewPassword = '' , $ email = '' , $ libraryQuota = 0 , $ isPasswordChangeRequired = 0 , $ firstName = '' , $ lastName = '' , $ phone = '' , $ ref1 = '' , $ ref2 = '' , $ ref3 = '' , $ ref4 = '' , $ ref5 = '' ) { $ this -> userId = $ userId ; $ this -> userName = $ userName ; $ this -> userTypeId = $ userTypeId ; $ this -> homePageId = $ homePageId ; $ this -> newPassword = $ newPassword ; $ this -> retypeNewPassword = $ retypeNewPassword ; $ this -> newUserWizard = $ newUserWizard ; $ this -> hideNavigation = $ hideNavigation ; $ this -> email = $ email ; $ this -> libraryQuota = $ libraryQuota ; $ this -> isPasswordChangeRequired = $ isPasswordChangeRequired ; $ this -> firstName = $ firstName ; $ this -> lastName = $ lastName ; $ this -> phone = $ phone ; $ this -> ref1 = $ ref1 ; $ this -> ref2 = $ ref2 ; $ this -> ref3 = $ ref3 ; $ this -> ref4 = $ ref4 ; $ this -> ref5 = $ ref5 ; $ this -> getLogger ( ) -> info ( 'Editing User ID ' . $ userId ) ; $ response = $ this -> doPut ( '/user/' . $ userId , $ this -> toArray ( ) ) ; $ this -> getLogger ( ) -> debug ( 'Passing the response to Hydrate' ) ; /** @var XiboUser $user */ $ user = $ this -> hydrate ( $ response ) ; return $ user ; }
Edit an existing User.

@param int $userId The User ID to edit
@param string $userName The User Name
@param int $userTypeId The user type id
@param int $homePageId The homepage ID to use for this User
@param string $newPassword New Password for the User
@param string $retypeNewPassword New Password for the User retyped
@param int $newUserWizard Flag indicating whether to show the new user guide
@param int $hideNavigation Flag indicating whether to hide the navigation
@param string $email The User email address
@param int $libraryQuota The Users library quota in kilobytes
@param int $isPasswordChangeRequired A flag indicating whether password change should be forced for this user
@param string $firstName The User first name
@param string $lastName The User Last name
@param string $phone The user phone number
@param string $ref1 Reference 1
@param string $ref2 Reference 2
@param string $ref3 Reference 3
@param string $ref4 Reference 4
@param string $ref5 Reference 5

@return XiboUser
Edit an existing User .