OXID eShop CE  4.8.11
 All Classes Files Functions Variables Pages
shop_system.php
Go to the documentation of this file.
1 <?php
2 
8 class Shop_System extends Shop_Config
9 {
14  protected $_sThisTemplate = 'shop_system.tpl';
15 
22  public function render()
23  {
24  $myConfig = $this->getConfig();
26 
27  $aConfArrs = array();
28 
29  $oLang = oxRegistry::getLang();
30 
31  $aLanguages = $oLang->getLanguageArray();
32  $sLangAbbr = $aLanguages[$oLang->getObjectTplLanguage()]->abbr;
33 
34  // loading shop location countries list (defines in which country shop exists)
35  include "shop_countries.php";
36 
37  $soxId = $this->getEditObjectId();
38  if ( !$soxId)
39  $soxId = $myConfig->getShopId();
40 
41  $oDb = oxDb::getDb();
42  $sShopCountry = $oDb->getOne("select DECODE( oxvarvalue, ".$oDb->quote( $myConfig->getConfigParam( 'sConfigKey' ) ).") as oxvarvalue from oxconfig where oxshopid = '$soxId' and oxvarname = 'sShopCountry'", false, false);
43 
44  $this->_aViewData["shop_countries"] = $aLocationCountries[$sLangAbbr];
45  $this->_aViewData["confstrs"]["sShopCountry"] = $sShopCountry;
46 
47  return $this->_sThisTemplate;
48  }
49 }