OXID eShop CE
4.10.5
Main Page
Related Pages
Classes
Files
File List
File Members
OXID eShop CE
Deprecated List
Classes
Files
File List
admin
application
components
widgets
oxcmp_basket.php
oxcmp_categories.php
oxcmp_cur.php
oxcmp_lang.php
oxcmp_news.php
oxcmp_shop.php
oxcmp_user.php
oxcmp_utils.php
oxlocator.php
controllers
models
translations
bin
core
modules
index.php
bootstrap.php
config.inc.php
getimg.php
oxseo.php
version.php
widget.php
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Pages
oxcmp_shop.php
Go to the documentation of this file.
1
<?php
2
9
class
oxcmp_shop
extends
oxView
10
{
11
17
protected
$_blIsComponent
=
true
;
18
24
public
function
render
()
25
{
26
parent::render
();
27
28
$myConfig
= $this->
getConfig
();
29
30
// is shop active?
31
$oShop =
$myConfig
->getActiveShop();
32
$sActiveField =
'oxshops__oxactive'
;
33
$sClassName =
$myConfig
->getActiveView()->getClassName();
34
35
if
(!$oShop->$sActiveField->value &&
'oxstart'
!= $sClassName && !$this->isAdmin()) {
36
// redirect to offline if there is no active shop
37
oxRegistry::getUtils
()->redirectOffline();
38
}
39
40
return
$oShop;
41
}
42
}
application
components
oxcmp_shop.php
Generated by
1.8.1.2