kernel/private/classes/ezplanguageswitcher.php
public function process()
    {
        $saIni = $this->getSiteAccessIni();
        $this->destinationLocale = $saIni->variable( 'RegionalSettings', 'ContentObjectLocale' );

        // Detect the type of siteaccess we are dealing with. Initially URI and Host are supported.
        // We don't want the siteaccess part here, since we are inserting our siteaccess name.
        $indexFile = trim( eZSys::indexFile( false ), '/' );
        switch ( $GLOBALS['eZCurrentAccess']['type'] )
        {
            case eZSiteAccess::TYPE_URI:
                eZURI::transformURI( $host, true, 'full' );
                break;

            default:
                $host = $saIni->variable( 'SiteSettings', 'SiteURL' );
                $host = eZSys::serverProtocol()."://".$host;
                break;
        }
        $this->baseDestinationUrl = "{$host}{$indexFile}";
    }
public function process()
    {
        $saIni = $this->getSiteAccessIni();
        $this->destinationLocale = $saIni->variable( 'RegionalSettings', 'ContentObjectLocale' );

        // Detect the type of siteaccess we are dealing with. Initially URI and Host are supported.
        // We don't want the siteaccess part here, since we are inserting our siteaccess name.
        $indexFile = trim( eZSys::indexFile( false ), '/' );
        switch ( $GLOBALS['eZCurrentAccess']['type'] )
        {
            case eZSiteAccess::TYPE_URI:
                eZURI::transformURI( $host, true, 'full' );
                break;

            default:
                $host = $saIni->variable( 'SiteSettings', 'SiteURL' );
                $host = eZSys::serverProtocol()."://".$host;
                break;
        }
        $this->baseDestinationUrl = "{$host}{$indexFile}";
    }
public function process ( ) { $ saIni = $ this -> getSiteAccessIni ( ) ; $ this -> destinationLocale = $ saIni -> variable ( 'RegionalSettings' , 'ContentObjectLocale' ) ; // Detect the type of siteaccess we are dealing with. Initially URI and Host are supported. // We don't want the siteaccess part here, since we are inserting our siteaccess name. $ indexFile = trim ( eZSys :: indexFile ( false ) , '/' ) ; switch ( $ GLOBALS [ 'eZCurrentAccess' ] [ 'type' ] ) { case eZSiteAccess :: TYPE_URI : eZURI :: transformURI ( $ host , true , 'full' ) ; break ; default : $ host = $ saIni -> variable ( 'SiteSettings' , 'SiteURL' ) ; $ host = eZSys :: serverProtocol ( ) . "://" . $ host ; break ; } $ this -> baseDestinationUrl = "{$host}{$indexFile}" ; }
This is a hook which is called by the language switcher module on
implementation classes.

In this implementation it is doing initialisation as an example.

@return void
This is a hook which is called by the language switcher module on implementation classes .