OXID eShop CE
4.10.7
Main Page
Related Pages
Classes
Files
File List
File Members
All
Classes
Namespaces
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
{
10
16
protected
$_sThisTemplate
=
'shop_system.tpl'
;
17
24
public
function
render
()
25
{
26
$myConfig
= $this->
getConfig
();
27
parent::render
();
28
29
$aConfArrs = array();
30
31
$oLang =
oxRegistry::getLang
();
32
33
$aLanguages
= $oLang->getLanguageArray();
34
$sLangAbbr =
$aLanguages
[$oLang->getObjectTplLanguage()]->abbr;
35
36
// loading shop location countries list (defines in which country shop exists)
37
include
"shop_countries.php"
;
38
39
$soxId = $this->
getEditObjectId
();
40
if
(!$soxId) {
41
$soxId =
$myConfig
->getShopId();
42
}
43
44
$oDb =
oxDb::getDb
();
45
$sShopCountry = $oDb->getOne(
"select DECODE( oxvarvalue, "
. $oDb->quote(
$myConfig
->getConfigParam(
'sConfigKey'
)) .
") as oxvarvalue from oxconfig where oxshopid = '$soxId' and oxvarname = 'sShopCountry'"
,
false
,
false
);
46
47
$this->_aViewData[
"shop_countries"
] =
$aLocationCountries
[$sLangAbbr];
48
$this->_aViewData[
"confstrs"
][
"sShopCountry"
] = $sShopCountry;
49
50
return
$this->_sThisTemplate
;
51
}
52
}
application
controllers
admin
shop_system.php
Generated by
1.8.1.2