/** * Generates current view id. * * @return string */ protected function generateViewId() { $config = $this->getConfig(); $viewId = $this->generateViewIdBase(); $viewId .= "|" . (int) $this->_blForceNoIndex . '|' . (int) $this->isRootCatChanged(); // #0004798: SSL should be included in viewId if ($config->isSsl()) { $viewId .= "|ssl"; } // #0002866: external global viewID addition if (function_exists('customGetViewId')) { $externalViewId = customGetViewId(); if ($externalViewId !== null) { $viewId .= '|' . md5(serialize($externalViewId)); } } return $viewId; }
/** * If current view ID is not set - forms and returns view ID * according to language and currency. * * @return string $this->_sViewId */ public function getViewId() { if ($this->_sViewId) { return $this->_sViewId; } $oConfig = $this->getConfig(); $iLang = oxRegistry::getLang()->getBaseLanguage(); $iCur = (int) $oConfig->getShopCurrency(); $this->_sViewId = "ox|{$iLang}|{$iCur}"; $this->_sViewId .= "|" . (int) $this->_blForceNoIndex . '|' . (int) $this->isRootCatChanged(); // #0004798: SSL should be included in viewId if ($oConfig->isSsl()) { $this->_sViewId .= "|ssl"; } // #0002866: external global viewID addition if (function_exists('customGetViewId')) { $oExtViewId = customGetViewId(); if ($oExtViewId !== null) { $this->_sViewId .= '|' . md5(serialize($oExtViewId)); } } return $this->_sViewId; }
/** * If current view ID is not set - forms and returns view ID * according to language and currency. * * @return string $this->_sViewId */ public function getViewId() { if ($this->_sViewId) { return $this->_sViewId; } $myConfig = $this->getConfig(); $iLang = oxLang::getInstance()->getBaseLanguage(); $iCur = (int) $myConfig->getShopCurrency(); $this->_sViewId = "ox|{$iLang}|{$iCur}"; $this->_sViewId .= "|" . (int) $this->_blForceNoIndex . '|' . (int) $this->isRootCatChanged(); // #0002866: external global viewID addition if (function_exists('customGetViewId')) { $oExtViewId = customGetViewId(); if ($oExtViewId !== null) { $this->_sViewId .= '|' . md5(serialize($oExtViewId)); } } return $this->_sViewId; }