src/ShopBundle/objects/db/TShopOrderStep/TShopStepUserDataV2EndPoint.class.php
public static function GetUserMode()
    {
        $umode = 'register';
        if (array_key_exists('tw_order_umode', $_SESSION)) {
            $umode = $_SESSION['tw_order_umode'];
        }
        if ('user' != $umode) {
            // check if the user is signed in... if so, we change the mode to user
            $oUser = self::getExtranetUserProvider()->getActiveUser();
            if ($oUser && $oUser->IsLoggedIn()) {
                $umode = 'user';
                TShopStepUserDataV2::SetUserMode($umode);
            }
        }

        return $umode;
    }
public static function GetUserMode()
    {
        $umode = 'register';
        if (array_key_exists('tw_order_umode', $_SESSION)) {
            $umode = $_SESSION['tw_order_umode'];
        }
        if ('user' != $umode) {
            // check if the user is signed in... if so, we change the mode to user
            $oUser = self::getExtranetUserProvider()->getActiveUser();
            if ($oUser && $oUser->IsLoggedIn()) {
                $umode = 'user';
                TShopStepUserDataV2::SetUserMode($umode);
            }
        }

        return $umode;
    }
public static function GetUserMode ( ) { $ umode = 'register' ; if ( array_key_exists ( 'tw_order_umode' , $ _SESSION ) ) { $ umode = $ _SESSION [ 'tw_order_umode' ] ; } if ( 'user' != $ umode ) { // check if the user is signed in... if so, we change the mode to user $ oUser = self :: getExtranetUserProvider ( ) -> getActiveUser ( ) ; if ( $ oUser && $ oUser -> IsLoggedIn ( ) ) { $ umode = 'user' ; TShopStepUserDataV2 :: SetUserMode ( $ umode ) ; } } return $ umode ; }
return the current registration mode... if the user is logged in the mode will be forced to user.

@return string
return the current registration mode ... if the user is logged in the mode will be forced to user .