kernel/classes/datatypes/ezuser/ezuserloginhandler.php
public static function preCheck( array &$siteBasics, eZURI $uri )
    {
        if ( !$siteBasics['user-object-required'] )
        {
            return null;
        }

        $ini = eZINI::instance();
        $requireUserLogin = ( $ini->variable( 'SiteAccessSettings', 'RequireUserLogin' ) == 'true' );
        $forceLogin = false;
        if ( eZSession::hasStarted() )
        {
            $http = eZHTTPTool::instance();
            $forceLogin = $http->hasSessionVariable( self::FORCE_LOGIN );
        }
        if ( !$requireUserLogin && !$forceLogin )
        {
            return null;
        }
        return self::checkUser( $siteBasics, $uri );
    }
public static function preCheck( array &$siteBasics, eZURI $uri )
    {
        if ( !$siteBasics['user-object-required'] )
        {
            return null;
        }

        $ini = eZINI::instance();
        $requireUserLogin = ( $ini->variable( 'SiteAccessSettings', 'RequireUserLogin' ) == 'true' );
        $forceLogin = false;
        if ( eZSession::hasStarted() )
        {
            $http = eZHTTPTool::instance();
            $forceLogin = $http->hasSessionVariable( self::FORCE_LOGIN );
        }
        if ( !$requireUserLogin && !$forceLogin )
        {
            return null;
        }
        return self::checkUser( $siteBasics, $uri );
    }
public static function preCheck ( array & $ siteBasics , eZURI $ uri ) { if ( ! $ siteBasics [ 'user-object-required' ] ) { return null ; } $ ini = eZINI :: instance ( ) ; $ requireUserLogin = ( $ ini -> variable ( 'SiteAccessSettings' , 'RequireUserLogin' ) == 'true' ) ; $ forceLogin = false ; if ( eZSession :: hasStarted ( ) ) { $ http = eZHTTPTool :: instance ( ) ; $ forceLogin = $ http -> hasSessionVariable ( self :: FORCE_LOGIN ) ; } if ( ! $ requireUserLogin && ! $ forceLogin ) { return null ; } return self :: checkUser ( $ siteBasics , $ uri ) ; }
Check if user login is required. If so, use login handler to redirect user.

@since 4.4
@param array $siteBasics
@param eZURI $uri
@return array|true|false|null An associative array on redirect with 'module' and 'function' keys, true on successful
and false/null on #fail.
Check if user login is required . If so use login handler to redirect user .