src/Native5/Services/Users/DefaultUserManager.php
public function saveUser(\Native5\Services\Users\User $user, $updates)
    {
        $logger = $GLOBALS['logger'];
        $path    = 'users/'.$user->getId();
        $request = $this->_remoteServer->put($path, array(), json_encode($updates));
        try {
            $response = $request->send();
            return $response->getBody('true');
        } catch(\Guzzle\Http\Exception\BadResponseException $e) {
            $logger->info($e->getResponse()->getBody('true'), array());
            return false;
        }
    }
public function saveUser(\Native5\Services\Users\User $user, $updates)
    {
        $logger = $GLOBALS['logger'];
        $path    = 'users/'.$user->getId();
        $request = $this->_remoteServer->put($path, array(), json_encode($updates));
        try {
            $response = $request->send();
            return $response->getBody('true');
        } catch(\Guzzle\Http\Exception\BadResponseException $e) {
            $logger->info($e->getResponse()->getBody('true'), array());
            return false;
        }
    }
public function saveUser ( \ Native5 \ Services \ Users \ User $ user , $ updates ) { $ logger = $ GLOBALS [ 'logger' ] ; $ path = 'users/' . $ user -> getId ( ) ; $ request = $ this -> _remoteServer -> put ( $ path , array ( ) , json_encode ( $ updates ) ) ; try { $ response = $ request -> send ( ) ; return $ response -> getBody ( 'true' ) ; } catch ( \ Guzzle \ Http \ Exception \ BadResponseException $ e ) { $ logger -> info ( $ e -> getResponse ( ) -> getBody ( 'true' ) , array ( ) ) ; return false ; } }
Updates user details

@param mixed $user
@access public
@return void
Updates user details