171 $this->_sThisAction = strtolower(get_class($this));
173 if (!$this->_blIsComponent) {
186 $this->_aViewParams = $aParams;
198 $sValue = (isset($this->_aViewParams[$sKey])) ? $this->_aViewParams[$sKey] : $this->
getConfig()->getRequestParameter($sKey);
210 $this->_blIsCallForCache = $blIsCallForCache;
256 $this->_iNewsStatus = 1;
261 $oViewConf->setViewShop($oShop, $this->_aViewData);
265 $this->_aViewData[
'oView'] = $this;
279 $this->_aViewData[$sPara] = $sValue;
289 if ($sBelboon = $this->
getSession()->getVariable(
'belboon')) {
292 if (($sBelboon = $this->
getConfig()->getRequestParameter(
'belboon'))) {
293 $this->
getSession()->setVariable(
'belboon', $sBelboon);
306 if ($this->_oViewConf === null) {
307 $this->_oViewConf =
oxNew(
'oxViewConfig');
330 $this->_sThisTemplate = $sTemplate;
340 $this->_sClass = $sClassName;
360 $this->_sFnc = $sFncName;
380 $this->_aViewData = $aViewData;
402 if ($sParamId && isset($this->_aViewData[$sParamId])) {
403 return $this->_aViewData[$sParamId];
414 $this->_sClassLocation = $sClassLocation;
434 $this->_sThisAction = $sThisAction;
454 $this->_oParent = $oParent;
474 $this->_blIsComponent = $blIsComponent;
495 public function executeFunction($sFunction)
498 if ($sFunction && !self::$_blExecuted) {
499 if (method_exists($this, $sFunction)) {
502 $sNewAction = $this->$sFunction();
503 self::$_blExecuted =
true;
505 if (isset ($sNewAction)) {
510 if (!$this->_blIsComponent) {
512 $oEx =
oxNew(
'oxSystemComponentException');
513 $oEx->setMessage(
'ERROR_MESSAGE_SYSTEMCOMPONENT_FUNCTIONNOTFOUND');
514 $oEx->setComponent($sFunction);
534 $aParams = explode(
'?', $sNewAction);
537 $sPageParams = isset($aParams[1]) ? $aParams[1] : null;
540 $aParams = explode(
'/', $aParams[0]);
541 $sClassName = $aParams[0];
544 $sHeader = ($sClassName) ?
"cl=$sClassName&" :
'';
545 $sHeader .= ($sPageParams) ?
"$sPageParams&" :
'';
550 $sUrl =
"{$sUrl}index.php?{$sHeader}";
581 if ($this->_sTrustedShopId == null) {
582 $this->_sTrustedShopId =
false;
584 $aTsType = $oConfig->getConfigParam(
'tsSealType');
585 $sTsActive = $oConfig->getConfigParam(
'tsSealActive');
586 $aTrustedShopIds = $oConfig->getConfigParam(
'iShopID_TrustedShops');
588 if ($sTsActive && $aTrustedShopIds && $aTsType[$iLangId] ==
'CLASSIC') {
590 if (!is_array($aTrustedShopIds) && $iLangId == 0) {
591 $this->_sTrustedShopId = $aTrustedShopIds;
593 if (is_array($aTrustedShopIds)) {
594 $this->_sTrustedShopId = $aTrustedShopIds[$iLangId];
596 if (strlen($this->_sTrustedShopId) != 33 || substr($this->_sTrustedShopId, 0, 1) !=
'X') {
597 $this->_sTrustedShopId =
false;
612 if ($this->_sTSExcellenceId == null) {
613 $this->_sTSExcellenceId =
false;
615 $aTsType = $oConfig->getConfigParam(
'tsSealType');
616 $sTsActive = $oConfig->getConfigParam(
'tsSealActive');
617 $aTrustedShopIds = $oConfig->getConfigParam(
'iShopID_TrustedShops');
619 if ($sTsActive && $aTrustedShopIds && $aTsType[$iLangId] ==
'EXCELLENCE') {
620 $this->_sTSExcellenceId = $aTrustedShopIds[$iLangId];
634 if ($this->_sCharSet == null) {
648 if ($this->_sVersion == null) {
649 $this->_sVersion = $this->
getConfig()->getActiveShop()->oxshops__oxversion->value;
662 return $this->
getConfig()->getActiveShop()->oxshops__oxedition->value;
672 return $this->
getConfig()->getRevision();
682 return $this->
getConfig()->getPackageInfo();
693 $sFullEdition =
"Community Edition";
694 if ($sEdition ==
"PE") {
695 $sFullEdition =
"Professional Edition";
698 if ($sEdition ==
"EE") {
699 $sFullEdition =
"Enterprise Edition";
702 return $sFullEdition;
713 if ($this->_blDemoVersion == null) {
714 $this->_blDemoVersion = $this->
getConfig()->detectVersion() == 1;
727 $blBetaVersion =
false;
729 if (stripos($this->
getConfig()->getVersion(),
'beta') !==
false) {
730 $blBetaVersion =
true;
733 return $blBetaVersion;
743 $blRCVersion =
false;
745 if (stripos($this->
getConfig()->getVersion(),
'rc') !==
false) {
775 if ($this->_blDemoShop == null) {
776 $this->_blDemoShop = $this->
getConfig()->isDemoShop();
789 if ($this->_iNewsStatus === null) {
803 $this->_iNewsStatus = $blShow;
815 if ($this->_sShopLogo === null) {
831 $this->_sShopLogo = $sLogo;
846 if ($this->_oClickCat === null) {
848 $this->_oClickCat =
false;
849 $oCategory =
oxNew(
'oxcategory');
850 if ($oCategory->load($this->getCategoryId())) {
851 $this->_oClickCat = $oCategory;
865 $this->_oClickCat = $oCategory;
875 if ($this->_sCategoryId == null && ($sCatId = $this->
getConfig()->getRequestParameter(
'cnid'))) {
876 $this->_sCategoryId = $sCatId;
889 $this->_sCategoryId = $sCategoryId;
919 if (
$myConfig->getConfigParam(
"bl_showFbConnect")) {
922 return $oFb->isConnected();
935 if ($this->
getConfig()->getConfigParam(
"bl_showFbConnect")) {
938 return $oFb->getUser();
950 if ($this->
getConfig()->getRequestParameter(
"fblogin")) {
994 if (!$oSession->isActualSidInCookie()) {
995 $sRet = $oSession->getId();