163 $this->_sThisAction = strtolower( get_class( $this ) );
165 if ( !$this->_blIsComponent ) {
180 $this->_aViewParams = $aParams;
192 $sValue = ( isset( $this->_aViewParams[$sKey] ) ) ? $this->_aViewParams[$sKey] : $this->
getConfig()->getRequestParameter( $sKey );
206 $this->_blIsCallForCache = $blIsCallForCache;
254 $this->_iNewsStatus = 1;
259 $oViewConf->setViewShop( $oShop, $this->_aViewData );
263 $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' );
332 $this->_sThisTemplate = $sTemplate;
344 $this->_sClass = $sClassName;
366 $this->_sFnc = $sFncName;
388 $this->_aViewData = $aViewData;
410 if ( $sParamId && isset( $this->_aViewData[$sParamId] ) ) {
411 return $this->_aViewData[$sParamId];
424 $this->_sClassLocation = $sClassLocation;
445 $this->_sThisAction = $sThisAction;
467 $this->_oParent = $oParent;
489 $this->_blIsComponent = $blIsComponent;
515 if ( $sFunction && !self::$_blExecuted ) {
516 if ( method_exists( $this, $sFunction ) ) {
519 $sNewAction = $this->$sFunction();
520 self::$_blExecuted =
true;
522 if ( isset ( $sNewAction ) ) {
527 if ( !$this->_blIsComponent ) {
528 $oEx =
oxNew(
'oxSystemComponentException' );
529 $oEx->setMessage(
'ERROR_MESSAGE_SYSTEMCOMPONENT_FUNCTIONNOTFOUND' );
530 $oEx->setComponent( $sFunction );
552 $aParams = explode(
'?', $sNewAction );
555 $sPageParams = isset( $aParams[1] )?$aParams[1]:null;
558 $aParams = explode(
'/', $aParams[0] );
559 $sClassName = $aParams[0];
562 $sHeader = ( $sClassName )?
"cl=$sClassName&":
'';
563 $sHeader .= ( $sPageParams )?
"$sPageParams&":
'';
568 $sUrl =
"{$sUrl}index.php?{$sHeader}";
599 if ( $this->_sTrustedShopId == null ) {
600 $this->_sTrustedShopId =
false;
602 $aTsType = $oConfig->getConfigParam(
'tsSealType' );
603 $sTsActive = $oConfig->getConfigParam(
'tsSealActive' );
604 $aTrustedShopIds = $oConfig->getConfigParam(
'iShopID_TrustedShops' );
606 if ( $sTsActive && $aTrustedShopIds && $aTsType[$iLangId] ==
'CLASSIC' ) {
608 if ( !is_array( $aTrustedShopIds ) && $iLangId == 0 ) {
609 $this->_sTrustedShopId = $aTrustedShopIds;
611 if ( is_array( $aTrustedShopIds ) ) {
612 $this->_sTrustedShopId = $aTrustedShopIds[$iLangId];
614 if ( strlen( $this->_sTrustedShopId ) != 33 || substr( $this->_sTrustedShopId, 0, 1 ) !=
'X' ) {
615 $this->_sTrustedShopId =
false;
629 if ( $this->_sTSExcellenceId == null ) {
630 $this->_sTSExcellenceId =
false;
632 $aTsType = $oConfig->getConfigParam(
'tsSealType' );
633 $sTsActive = $oConfig->getConfigParam(
'tsSealActive' );
634 $aTrustedShopIds = $oConfig->getConfigParam(
'iShopID_TrustedShops' );
636 if ( $sTsActive && $aTrustedShopIds && $aTsType[$iLangId] ==
'EXCELLENCE' ) {
637 $this->_sTSExcellenceId = $aTrustedShopIds[$iLangId];
650 if ( $this->_sCharSet == null ) {
663 if ( $this->_sVersion == null ) {
664 $this->_sVersion = $this->
getConfig()->getActiveShop()->oxshops__oxversion->value;
676 return $this->
getConfig()->getActiveShop()->oxshops__oxedition->value;
686 return $this->
getConfig()->getRevision();
696 return $this->
getConfig()->getPackageInfo();
707 $sFullEdition =
"Community Edition";
708 if ( $sEdition ==
"PE" ) {
709 $sFullEdition =
"Professional Edition";
712 if ( $sEdition ==
"EE" ) {
713 $sFullEdition =
"Enterprise Edition";
716 return $sFullEdition;
727 if ( $this->_blDemoVersion == null ) {
728 $this->_blDemoVersion = $this->
getConfig()->detectVersion() == 1;
740 $blbetaVersion =
false;
742 if ( stripos( $this->
getConfig()->getVersion(),
'beta' ) !==
false ) {
743 $blbetaVersion =
true;
746 return $blbetaVersion;
756 $blRCVersion =
false;
758 if ( stripos( $this->
getConfig()->getVersion(),
'rc' ) !==
false ) {
788 if ( $this->_blDemoShop == null ) {
789 $this->_blDemoShop = $this->
getConfig()->isDemoShop();
801 if ( $this->_iNewsStatus === null) {
816 $this->_iNewsStatus = $blShow;
828 if ( $this->_sShopLogo === null ) {
846 $this->_sShopLogo = $sLogo;
863 if ( $this->_oClickCat === null ) {
865 $this->_oClickCat =
false;
866 $oCategory =
oxNew(
'oxcategory' );
867 if ( $oCategory->load( $this->getCategoryId() ) ) {
868 $this->_oClickCat = $oCategory;
886 $this->_oClickCat = $oCategory;
896 if ( $this->_sCategoryId == null && ( $sCatId = $this->
getConfig()->getRequestParameter(
'cnid' ) ) ) {
897 $this->_sCategoryId = $sCatId;
912 $this->_sCategoryId = $sCategoryId;
944 if (
$myConfig->getConfigParam(
"bl_showFbConnect" ) ) {
946 return $oFb->isConnected();
959 if ( $this->
getConfig()->getConfigParam(
"bl_showFbConnect" ) ) {
961 return $oFb->getUser();
973 if ( $this->
getConfig()->getRequestParameter(
"fblogin" ) ) {
1017 if (!$oSession->isActualSidInCookie() ) {
1018 $sRet = $oSession->getId();