OXID eShop CE
4.8.11
Main Page
Related Pages
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Pages
oxcmp_shop.php
Go to the documentation of this file.
1
<?php
2
8
class
oxcmp_shop
extends
oxView
9
{
14
protected
$_blIsComponent
=
true
;
15
21
public
function
render
()
22
{
23
parent::render
();
24
25
$myConfig
= $this->
getConfig
();
26
27
// is shop active?
28
$oShop =
$myConfig
->getActiveShop();
29
if
( !$oShop->oxshops__oxactive->value &&
'oxstart'
!=
$myConfig
->getActiveView()->getClassName() && !$this->
isAdmin
() ) {
30
// redirect to offline if there is no active shop
31
oxRegistry::getUtils
()->redirectOffline();
32
}
33
34
return
$oShop;
35
}
36
}
application
components
oxcmp_shop.php
Generated by
1.8.1.2