shop_system.php

Go to the documentation of this file.
00001 <?php
00002 
00008 class Shop_System extends Shop_Config
00009 {
00014     protected $_sThisTemplate = 'shop_system.tpl';
00015 
00022     public function render()
00023     {
00024         $myConfig  = $this->getConfig();
00025         parent::render();
00026 
00027         $aConfArrs = array();
00028 
00029         $oLang = oxLang::getInstance();
00030         $iLang = $oLang->getTplLanguage();
00031 
00032         $aLanguages = $oLang->getLanguageArray();
00033         $sLangAbbr = $aLanguages[$iLang]->abbr;
00034 
00035         // loading shop location countries list (defines in which country shop exists)
00036         require "shop_countries.php";
00037 
00038         $soxId = oxConfig::getParameter( "oxid");
00039         if ( !$soxId)
00040             $soxId = $myConfig->getShopId();
00041 
00042         $sShopCountry = oxDb::getDb()->getOne("select DECODE( oxvarvalue, '".$myConfig->getConfigParam( 'sConfigKey' )."') as oxvarvalue from oxconfig where oxshopid = '$soxId' and oxvarname = 'sShopCountry'");
00043 
00044         $this->_aViewData["shop_countries"] = $aCountries[$sLangAbbr];
00045         $this->_aViewData["confstrs"]["sShopCountry"] = $sShopCountry;
00046 
00047         return $this->_sThisTemplate;
00048     }
00049 }

Generated on Wed May 13 13:25:50 2009 for OXID eShop CE by  doxygen 1.5.5