public function getUserInfo($username)
    {
        try {
            $details = $this->_toolbox->getUserHandler()->get($username);

            $result = array();
            $result['username'] = $details->get('user');
            $result['active'] = $details->get('active');
            $result['data'] = $details->get('extra');

            return $result;

        } catch (\Exception $e) {
            $normalised = $this->_toolbox->normaliseDriverExceptions($e);
            throw new ServerException($normalised['message'], $normalised['code']);
        }
    }
public function getUserInfo($username)
    {
        try {
            $details = $this->_toolbox->getUserHandler()->get($username);

            $result = array();
            $result['username'] = $details->get('user');
            $result['active'] = $details->get('active');
            $result['data'] = $details->get('extra');

            return $result;

        } catch (\Exception $e) {
            $normalised = $this->_toolbox->normaliseDriverExceptions($e);
            throw new ServerException($normalised['message'], $normalised['code']);
        }
    }
public function getUserInfo ( $ username ) { try { $ details = $ this -> _toolbox -> getUserHandler ( ) -> get ( $ username ) ; $ result = array ( ) ; $ result [ 'username' ] = $ details -> get ( 'user' ) ; $ result [ 'active' ] = $ details -> get ( 'active' ) ; $ result [ 'data' ] = $ details -> get ( 'extra' ) ; return $ result ; } catch ( \ Exception $ e ) { $ normalised = $ this -> _toolbox -> normaliseDriverExceptions ( $ e ) ; throw new ServerException ( $ normalised [ 'message' ] , $ normalised [ 'code' ] ) ; } }
Get information about a user.
@param  string          $username The user we want information about.
@throws ServerException
@return array
Get information about a user .