src/ShopBundle/pkgExtranet/objects/db/TShopDataExtranetCore.class.php
public function GetLinkLogout($sSpotName)
    {
        $oGlobal = TGlobal::instance();
        // if we are on the last page of checkout process we can't use the active page url for logout
        // so we redirect to the home url with logout method as parameter
        if ($oGlobal->UserDataExists(MTShopOrderWizardCore::URL_PARAM_STEP_SYSTEM_NAME) && 'thankyou' == $oGlobal->GetUserData(MTShopOrderWizardCore::URL_PARAM_STEP_SYSTEM_NAME)) {
            return self::getPageService()->getLinkToPortalHomePageAbsolute().'?'.TTools::GetArrayAsURL(array('module_fnc['.$sSpotName.']' => 'Logout'));
        }

        return parent::GetLinkLogout($sSpotName);
    }
public function GetLinkLogout($sSpotName)
    {
        $oGlobal = TGlobal::instance();
        // if we are on the last page of checkout process we can't use the active page url for logout
        // so we redirect to the home url with logout method as parameter
        if ($oGlobal->UserDataExists(MTShopOrderWizardCore::URL_PARAM_STEP_SYSTEM_NAME) && 'thankyou' == $oGlobal->GetUserData(MTShopOrderWizardCore::URL_PARAM_STEP_SYSTEM_NAME)) {
            return self::getPageService()->getLinkToPortalHomePageAbsolute().'?'.TTools::GetArrayAsURL(array('module_fnc['.$sSpotName.']' => 'Logout'));
        }

        return parent::GetLinkLogout($sSpotName);
    }
public function GetLinkLogout ( $ sSpotName ) { $ oGlobal = TGlobal :: instance ( ) ; // if we are on the last page of checkout process we can't use the active page url for logout // so we redirect to the home url with logout method as parameter if ( $ oGlobal -> UserDataExists ( MTShopOrderWizardCore :: URL_PARAM_STEP_SYSTEM_NAME ) && 'thankyou' == $ oGlobal -> GetUserData ( MTShopOrderWizardCore :: URL_PARAM_STEP_SYSTEM_NAME ) ) { return self :: getPageService ( ) -> getLinkToPortalHomePageAbsolute ( ) . '?' . TTools :: GetArrayAsURL ( array ( 'module_fnc[' . $ sSpotName . ']' => 'Logout' ) ) ; } return parent :: GetLinkLogout ( $ sSpotName ) ; }
returns link to current page with logout method as parameter for given spotname of extranet module if not on "thank you" page of order process
otherwise it would return link to home page with logout method as parameter for given spotname.

@param $sSpotName

@return string
returns link to current page with logout method as parameter for given spotname of extranet module if not on thank you page of order process otherwise it would return link to home page with logout method as parameter for given spotname .