public function getGroupId($current = true)
    {
        if ($current && $this->_hasVar('current_user_group')) {
            return $this->_getVar('current_user_group');
        }
        return $this->_getVar('user_group');
    }
public function getGroupId($current = true)
    {
        if ($current && $this->_hasVar('current_user_group')) {
            return $this->_getVar('current_user_group');
        }
        return $this->_getVar('user_group');
    }
public function getGroupId ( $ current = true ) { if ( $ current && $ this -> _hasVar ( 'current_user_group' ) ) { return $ this -> _getVar ( 'current_user_group' ) ; } return $ this -> _getVar ( 'user_group' ) ; }
Returns the group number of this user.

@param boolean $current Checks value for current role (when false for normal role);
@return int
Returns the group number of this user .