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         $oDb = oxDb::getDb();
00043         $sShopCountry = $oDb->getOne("select DECODE( oxvarvalue, ".$oDb->quote( $myConfig->getConfigParam( 'sConfigKey' ) ).") as oxvarvalue from oxconfig where oxshopid = '$soxId' and oxvarname = 'sShopCountry'");
00044 
00045         $this->_aViewData["shop_countries"] = $aCountries[$sLangAbbr];
00046         $this->_aViewData["confstrs"]["sShopCountry"] = $sShopCountry;
00047 
00048         return $this->_sThisTemplate;
00049     }
00050 }

Generated on Mon Oct 26 20:07:16 2009 for OXID eShop CE by  doxygen 1.5.5