public function isLoggedIn()
    {
        if (!$this->hasFakeFrontEnd()) {
            throw new Exception('Please create a front end before calling isLoggedIn.', 1334439494);
        }

        return isset($GLOBALS['TSFE']) && is_object($GLOBALS['TSFE'])
            && is_array($GLOBALS['TSFE']->fe_user->user);
    }
public function isLoggedIn()
    {
        if (!$this->hasFakeFrontEnd()) {
            throw new Exception('Please create a front end before calling isLoggedIn.', 1334439494);
        }

        return isset($GLOBALS['TSFE']) && is_object($GLOBALS['TSFE'])
            && is_array($GLOBALS['TSFE']->fe_user->user);
    }
public function isLoggedIn ( ) { if ( ! $ this -> hasFakeFrontEnd ( ) ) { throw new Exception ( 'Please create a front end before calling isLoggedIn.' , 1334439494 ) ; } return isset ( $ GLOBALS [ 'TSFE' ] ) && is_object ( $ GLOBALS [ 'TSFE' ] ) && is_array ( $ GLOBALS [ 'TSFE' ] -> fe_user -> user ) ; }
Checks whether a FE user is logged in.

@throws Exception if no front end has been created

@return bool TRUE if a FE user is logged in, FALSE otherwise
Checks whether a FE user is logged in .