8 define(
'VIEW_INDEXSTATE_INDEX', 0 );
9 define(
'VIEW_INDEXSTATE_NOINDEXNOFOLLOW', 1 );
10 define(
'VIEW_INDEXSTATE_NOINDEXFOLLOW', 2 );
280 'oxcmp_categories' => 0,
503 if ( self::$_aCollectedComponentNames === null ) {
504 self::$_aCollectedComponentNames = array_merge( $this->_aComponentNames, $this->_aUserComponentNames );
508 if ( ( $aUserCmps = $this->
getConfig()->getConfigParam(
'aUserComponentNames' ) ) ) {
509 self::$_aCollectedComponentNames = array_merge( self::$_aCollectedComponentNames, $aUserCmps );
513 unset( self::$_aCollectedComponentNames[
'oxcmp_basket'] );
518 reset( self::$_aCollectedComponentNames );
535 if ( !
isSearchEngineUrl() && $myUtils->seoIsActive() && ( $sStdUrl = getRequestUrl(
'',
true ) ) ) {
539 $myUtils->redirect( $this->
getConfig()->getCurrentShopUrl() . $sRedirectUrl,
false );
544 if ( $this->
getConfig()->getConfigParam(
'blSeoLogging') ) {
545 $sShopId = $this->
getConfig()->getShopId();
547 $sIdent = md5( strtolower( $sStdUrl ) . $sShopId . $sLangId );
551 $oDb->execute(
"replace oxseologs ( oxstdurl, oxident, oxshopid, oxlang )
552 values ( " . $oDb->quote( $sStdUrl ) .
", '{$sIdent}', '{$sShopId}', '{$sLangId}' ) " );
573 if ( $this->_blLoadComponents ) {
576 if ( !isset( $this->_oaComponents[$sComponentName] ) ) {
578 $oComponent =
oxNew( $sComponentName );
579 $oComponent->setParent( $this );
580 $oComponent->setThisAction( $sComponentName );
581 $this->_oaComponents[$sComponentName] = $oComponent;
586 $this->_oaComponents[$sComponentName]->init();
589 if ( !method_exists( $this, $this->
getFncName() ) ) {
590 $this->_oaComponents[$sComponentName]->executeFunction( $this->
getFncName() );
607 if ( $this->_sViewId ) {
613 $iCur = (int)
$myConfig->getShopCurrency();
616 $this->_sViewId =
"ox|$iLang|$iCur";
618 $this->_sViewId .=
"|".( (int) $this->_blForceNoIndex ).
'|'.((int)$this->
isRootCatChanged());
622 $this->_sViewId .=
"|ssl";
626 if (function_exists(
'customGetViewId')) {
627 $oExtViewId = customGetViewId();
629 if ($oExtViewId !== null) {
630 $this->_sViewId .=
'|'.md5(serialize($oExtViewId));
644 return $this->_blShowSorting && $this->
getConfig()->getConfigParam(
'blShowSorting' );
656 $this->_oaComponents = $aComponents;
678 if ( isset( $sName ) && isset( $this->_oaComponents[$sName] ) ) {
679 return $this->_oaComponents[$sName];
691 $this->_blIsOrderStep = $blIsOrderStep;
714 $this->_oActCategory = $oCategory;
734 if ( $this->_sListType == null ) {
736 $this->_sListType = $sListType;
737 } elseif ( $sListType = $this->
getConfig()->getGlobalParameter(
'listtype' ) ) {
738 $this->_sListType = $sListType;
751 if ( $this->_sListDisplayType == null ) {
754 if ( !$this->_sListDisplayType ) {
755 $this->_sListDisplayType = $this->
getConfig()->getConfigParam(
'sDefaultListDisplayType' );
758 $this->_sListDisplayType = in_array( (
string ) $this->_sListDisplayType, $this->_aListDisplayTypes ) ? $this->_sListDisplayType :
'infogrid';
775 if ( $this->_sCustomListDisplayType == null ) {
778 if ( !$this->_sCustomListDisplayType ) {
794 $this->_sListType = $sType;
795 $this->
getConfig()->setGlobalParameter(
'listtype', $sType );
805 if ( $this->_blLoadCurrency == null ) {
806 $this->_blLoadCurrency =
false;
807 if ( $blLoadCurrency = $this->
getConfig()->getConfigParam(
'bl_perfLoadCurrency' ) ) {
808 $this->_blLoadCurrency = $blLoadCurrency;
821 if ( $this->_blDontShowEmptyCats == null ) {
822 $this->_blDontShowEmptyCats =
false;
823 if ( $blDontShowEmptyCats = $this->
getConfig()->getConfigParam(
'blDontShowEmptyCategories' ) ) {
824 $this->_blDontShowEmptyCats = $blDontShowEmptyCats;
837 return $this->
getConfig()->getConfigParam(
'bl_perfShowActionCatArticleCnt' );
847 if ( $this->_blLoadLanguage == null ) {
848 $this->_blLoadLanguage =
false;
849 if ( $blLoadLanguage = $this->
getConfig()->getConfigParam(
'bl_perfLoadLanguages' ) ) {
850 $this->_blLoadLanguage = $blLoadLanguage;
863 if ( $this->_iTopCatNavItmCnt == null ) {
864 $iTopCatNavItmCnt = $this->
getConfig()->getConfigParam(
'iTopNaviCatCount' );
865 $this->_iTopCatNavItmCnt = $iTopCatNavItmCnt ? $iTopCatNavItmCnt : 5;
881 if (!is_array($this->_aRssLinks)) {
882 $this->_aRssLinks = array();
888 $this->_aRssLinks[] = array(
'title'=>$sTitle,
'link' => $sUrl);
890 $this->_aRssLinks[$key] = array(
'title'=>$sTitle,
'link' => $sUrl);
901 return 'listorderby';
945 $aSortDirections = array(
'desc',
'asc' );
952 $sSortDir &&
oxRegistry::getUtils()->isValidAlpha( $sSortDir ) && in_array( $oStr->strtolower($sSortDir), $aSortDirections ) ) {
953 $aSorting = array (
'sortby' => $sSortBy,
'sortdir' => $sSortDir );
970 if ( isset( $aSorting[$sSortIdent] ) ) {
971 return $aSorting[$sSortIdent];
984 $this->_sListOrderBy = $sColumn;
996 $this->_sListOrderDir = $sDirection;
1015 $aSortColumns = $this->
getConfig()->getConfigParam(
'aSortCols' );
1016 $aSortDir = array(
'desc',
'asc' );
1017 if ( count( $aSortColumns ) > 0 ) {
1019 $this->_aSortColumns = $aSortColumns;
1028 if ( (!$sSortBy || !in_array( $oStr->strtolower($sSortBy), $aSortColumns) || !in_array( $oStr->strtolower($sSortDir), $aSortDir) ) && $aSorting = $this->
getSorting( $sCnid ) ) {
1029 $sSortBy = $aSorting[
'sortby'];
1030 $sSortDir = $aSorting[
'sortdir'];
1036 $this->_sListOrderBy = $sSortBy;
1037 $this->_sListOrderDir = $sSortDir;
1053 $aColumns = explode(
'.', $this->_sListOrderBy);
1055 if ( is_array($aColumns) && count($aColumns) > 1 ) {
1056 return $aColumns[1];
1081 return $this->_sMetaDescription = $sDescription;
1093 return $this->_sMetaKeywords = $sKeywords;
1107 $sShop = $this->
getConfig()->getShopId();
1110 ( $sKeywords =
oxRegistry::get(
"oxSeoEncoder")->getMetaData( $sOxid, $sDataType, $sShop, $iLang) ) ) {
1124 if ( $sMetaIdent ) {
1125 $oContent =
oxNew(
'oxcontent' );
1126 if ( $oContent->loadByIdent( $sMetaIdent ) &&
1127 $oContent->oxcontents__oxactive->value ) {
1128 return getStr()->strip_tags( $oContent->oxcontents__oxcontent->value );
1140 if ( $this->_sMetaKeywords === null ) {
1141 $this->_sMetaKeywords =
false;
1145 $this->_sMetaKeywords = $sKeywords;
1163 if ( $this->_sMetaDescription === null ) {
1164 $this->_sMetaDescription =
false;
1167 if ( ( $sDescription = $this->
_getMetaFromSeo(
'oxdescription' ) ) ) {
1168 $this->_sMetaDescription = $sDescription;
1169 } elseif ( ( $sDescription = $this->
_getMetaFromContent( $this->_sMetaDescriptionIdent ) ) ) {
1198 $this->_oActCurrency = $oCur;
1208 if ( $this->_iCompItemsCnt === null ) {
1210 $this->_iCompItemsCnt = is_array($aItems)?count($aItems):0;
1222 $this->_blForceNoIndex =
true;
1233 if ( $this->_blForceNoIndex ) {
1239 case 'tocomparelist':
1279 $this->_aMenueList = $aMenue;
1293 $iNrofCatArticles =
$myConfig->getConfigParam(
'iNrofCatArticles' );
1295 $iNrofCatArticles = ( $iNrofCatArticles ) ? $iNrofCatArticles : 10;
1300 $aNrofCatArticles =
$myConfig->getConfigParam(
'aNrofCatArticlesInGrid' );
1305 $aNrofCatArticles =
$myConfig->getConfigParam(
'aNrofCatArticles' );
1308 if ( !is_array( $aNrofCatArticles ) || !isset( $aNrofCatArticles[0] ) ) {
1309 $aNrofCatArticles = array( $iNrofCatArticles );
1310 $myConfig->setConfigParam(
'aNrofCatArticles', $aNrofCatArticles );
1312 $iNrofCatArticles = $aNrofCatArticles[0];
1319 $iNrofCatArticles = ( in_array( $iNrofArticles, $aNrofCatArticles ) ) ? $iNrofArticles : $iNrofCatArticles;
1320 $oViewConf->setViewConfigParam(
'iartPerPage', $iNrofCatArticles );
1322 } elseif ( ( $iSessArtPerPage =
oxRegistry::getSession()->getVariable(
'_artperpage' ) )&& is_numeric( $iSessArtPerPage ) ) {
1324 $iNrofCatArticles = ( in_array( $iSessArtPerPage, $aNrofCatArticles ) ) ? $iSessArtPerPage : $iNrofCatArticles;
1325 $oViewConf->setViewConfigParam(
'iartPerPage', $iSessArtPerPage );
1326 $iNrofCatArticles = $iSessArtPerPage;
1328 $oViewConf->setViewConfigParam(
'iartPerPage', $iNrofCatArticles );
1332 $myConfig->setConfigParam(
'iNrofCatArticles', $iNrofCatArticles );
1358 if ( $iLength != -1 ) {
1364 $iELength = ( $iLength * 2 );
1365 $sMeta = $oStr->substr( $sMeta, 0, $iELength );
1369 $sMeta = $oStr->html_entity_decode( $sMeta );
1371 $sMeta = $oStr->strip_tags( $sMeta );
1374 $sMeta = $oStr->cleanStr( $sMeta );
1377 if ( $blRemoveDuplicatedWords ) {
1382 $sMeta = str_replace(
' ,',
',', $sMeta );
1383 $aPattern = array(
"/,[\s\+\-\*]*,/",
"/\s+,/" );
1384 $sMeta = $oStr->preg_replace( $aPattern,
',', $sMeta );
1385 $sMeta =
oxRegistry::get(
"oxUtilsString")->minimizeTruncateString( $sMeta, $iLength );
1386 $sMeta = $oStr->htmlspecialchars( $sMeta );
1388 return trim( $sMeta );
1405 if ( $blRemoveDuplicatedWords ) {
1409 return trim( $sString );
1423 if ( is_array( $aInput ) ) {
1424 $aInput = implode(
" ", $aInput );
1428 $aInput = $oStr->preg_replace(
"/[".preg_quote( $this->_sRemoveMetaChars,
"/" ).
"]/",
" ", $aInput );
1431 $aStrings = $oStr->preg_split(
"/[\s,]+/", $aInput );
1433 if ( $sCount = count( $aSkipTags ) ) {
1434 for ( $iNum = 0; $iNum < $sCount; $iNum++ ) {
1435 $aSkipTags[$iNum] = $oStr->strtolower( $aSkipTags[$iNum] );
1438 $sCount = count($aStrings);
1439 for ( $iNum = 0; $iNum < $sCount; $iNum++ ) {
1440 $aStrings[$iNum] = $oStr->strtolower( $aStrings[$iNum] );
1442 if ( !$aStrings[$iNum] || in_array( $aStrings[$iNum], $aSkipTags ) ) {
1443 unset( $aStrings[$iNum] );
1448 return implode(
', ', array_unique( $aStrings ) );
1492 $aSorting[$sSortIdent][
'sortby'] = $sSortBy;
1493 $aSorting[$sSortIdent][
'sortdir'] = $sSortDir ? $sSortDir : null;
1510 $this->
setItemSorting( $sSortIdent, $aSorting[
'sortby'], $aSorting[
'sortdir'] );
1533 if ( is_array( $aSorting ) ) {
1534 return implode(
" ", $aSorting );
1545 return $this->
getConfig()->getActiveShop()->oxshops__oxtitlesuffix->value;
1565 return $this->
getConfig()->getActiveShop()->oxshops__oxtitleprefix->value;
1593 switch ($sListType) {
1597 $sRet .=
"&listtype={$sListType}";
1599 $sRet .=
"&searchparam={$sSearchParamForLink}";
1603 $sRet .=
'&searchcnid='.rawurlencode( rawurldecode( $sVar ) );
1606 $sRet .=
'&searchvendor='.rawurlencode( rawurldecode( $sVar ) );
1609 $sRet .=
'&searchmanufacturer='.rawurlencode( rawurldecode( $sVar ) );
1613 $sRet .=
"&listtype={$sListType}";
1615 $sRet .=
"&searchtag={$sParam}";
1632 if ( !isset( $iLang ) ) {
1636 $oDisplayObj = null;
1644 if ( $oDisplayObj ) {
1645 return $this->
_addPageNrParam( $oDisplayObj->getLink( $iLang ), $iActPageNr, $iLang );
1704 $aFnc = array(
'tobasket',
'login_noredirect',
'addVoucher',
'moveleft',
'moveright' );
1705 if ( in_array( $sFnc, $aFnc ) ) {
1710 $sURL =
"cl={$sClass}";
1712 $sURL .=
"&fnc={$sFnc}";
1715 $sURL .=
"&cnid={$sVal}";
1718 $sURL .=
"&mnid={$sVal}";
1721 $sURL .=
"&anid={$sVal}";
1725 $sURL .=
"&page={$sVal}";
1729 $sURL .=
"&tpl={$sVal}";
1733 $sURL .=
"&oxloadid={$sVal}";
1739 if ( $blAddPageNr && $iPgNr > 0 ) {
1740 $sURL .=
"&pgNr={$iPgNr}";
1745 $sURL .=
"&searchparam={$sVal}";
1749 $sURL .=
"&searchcnid={$sVal}";
1753 $sURL .=
"&searchvendor={$sVal}";
1757 $sURL .=
"&searchmanufacturer={$sVal}";
1761 $sURL .=
"&searchrecomm={$sVal}";
1765 $sURL .=
"&searchtag={$sVal}";
1769 $sURL .=
"&recommid={$sVal}";
1786 $aFnc = array(
'tobasket',
'login_noredirect',
'addVoucher' );
1787 if ( in_array( $sFnc, $aFnc ) ) {
1792 $sURL =
"cl={$sClass}";
1794 $sURL .=
"&fnc={$sFnc}";
1797 $sURL .=
"&page={$sVal}";
1801 $sURL .=
"&tpl={$sVal}";
1805 $sURL .=
"&oxloadid={$sVal}";
1810 $sURL .=
"&pgNr={$iPgNr}";
1827 return (
int) $blShow;
1847 if ( $this->_aSortColumns === null ) {
1863 $this->_aSortColumns = $aSortColumns;
1900 if ( $this->_oActiveRecommList === null ) {
1901 $this->_oActiveRecommList =
false;
1903 $this->_oActiveRecommList =
oxNew(
'oxrecommlist' );
1904 $this->_oActiveRecommList->load( $sOxid );
1964 return $sTranslationName == $sTranslated? null : $sTranslated;
1975 if ( !$this->
getConfig()->getConfigParam(
'bl_perfLoadLanguages' ) ) {
1979 if ( !isset($this->_sActiveLangAbbr ) ) {
1981 while ( list( $sKey, $oVal ) = each(
$aLanguages ) ) {
1982 if ( $oVal->selected ) {
1983 $this->_sActiveLangAbbr = $oVal->abbr;
1989 return $this->_sActiveLangAbbr;
2015 if ( $this->_sAdditionalParams === null ) {
2018 $this->_sAdditionalParams .=
'cl='.$this->getConfig()->getTopActiveView()->getClassName();
2022 if ( isset( $sSearchParamForLink ) ) {
2023 $this->_sAdditionalParams .=
"&searchparam={$sSearchParamForLink}";
2026 $this->_sAdditionalParams .=
'&searchtag='.rawurlencode( rawurldecode( $sVar ) );
2029 $this->_sAdditionalParams .=
'&searchcnid='.rawurlencode( rawurldecode( $sVar ) );
2032 $this->_sAdditionalParams .=
'&searchvendor='.rawurlencode( rawurldecode( $sVar ) );
2035 $this->_sAdditionalParams .=
'&searchmanufacturer='.rawurlencode( rawurldecode( $sVar ) );
2038 $this->_sAdditionalParams .=
'&cnid='.rawurlencode( rawurldecode( $sVar ) );
2041 $this->_sAdditionalParams .=
'&mnid='.rawurlencode( rawurldecode( $sVar ) );
2055 return $this->
getConfig()->getShopHomeURL().$this->_getRequestParams(
false );
2070 if ( ( strpos( $sUrl,
'pgNr=' ) ) ) {
2071 $sUrl = preg_replace(
'/pgNr=[0-9]*/',
'pgNr='.$iPage, $sUrl);
2073 $sUrl .= ( ( strpos( $sUrl,
'?' ) === false ) ?
'?' :
'&' ) .
'pgNr='.$iPage;
2076 $sUrl = preg_replace(
'/pgNr=[0-9]*/',
'', $sUrl);
2077 $sUrl = preg_replace(
'/\&\;\&\;/',
'&', $sUrl);
2078 $sUrl = preg_replace(
'/\?\&\;/',
'?', $sUrl);
2079 $sUrl = preg_replace(
'/\&\;$/',
'', $sUrl);
2104 return $this->_oPageNavigation;
2117 return $this->_oPageNavigation;
2130 startProfile(
'generatePageNavigation');
2132 $pageNavigation =
new stdClass();
2134 $pageNavigation->NrOfPages = $this->_iCntPages;
2136 $pageNavigation->actPage = $iActPage + 1;
2139 if ( $iPositionCount == 0 || ($iPositionCount >= $pageNavigation->NrOfPages) ) {
2141 $iFinishNo = $pageNavigation->NrOfPages;
2145 $iTmpVal = $iPositionCount - 3;
2146 $iTmpVal2 = floor( ( $iPositionCount - 4 ) / 2 );
2149 if ( $pageNavigation->actPage <= $iTmpVal ) {
2151 $iFinishNo = $iTmpVal + 1;
2155 } elseif ( $pageNavigation->actPage >= $pageNavigation->NrOfPages - $iTmpVal ) {
2156 $iStartNo = $pageNavigation->NrOfPages - $iTmpVal;
2157 $iFinishNo = $pageNavigation->NrOfPages - 1;
2162 $iStartNo = $pageNavigation->actPage - $iTmpVal2;
2163 $iFinishNo = $pageNavigation->actPage + $iTmpVal2;
2169 if ( $iActPage > 0) {
2170 $pageNavigation->previousPage = $this->
_addPageNrParam( $sUrl, $iActPage - 1 );
2173 if ( $iActPage < $pageNavigation->NrOfPages - 1 ) {
2174 $pageNavigation->nextPage = $this->
_addPageNrParam( $sUrl, $iActPage + 1 );
2177 if ( $pageNavigation->NrOfPages > 1 ) {
2179 for ( $i=1; $i < $pageNavigation->NrOfPages + 1; $i++ ) {
2181 if ( $i == 1 || $i == $pageNavigation->NrOfPages || ( $i >= $iStartNo && $i <= $iFinishNo ) ) {
2182 $page =
new stdClass();
2184 $page->selected = ( $i == $pageNavigation->actPage ) ? 1 : 0;
2185 $pageNavigation->changePage[$i] = $page;
2191 $pageNavigation->lastpage = $this->
_addPageNrParam( $sUrl, $pageNavigation->NrOfPages - 1 );
2194 stopProfile(
'generatePageNavigation');
2196 return $pageNavigation;
2207 foreach ( array_keys( $this->_oaComponents ) as $sComponentName ) {
2208 $this->_aViewData[$sComponentName] = $this->_oaComponents[$sComponentName]->render();
2216 if ( $this->
getConfig()->getConfigParam(
'blDisableNavBars' ) ) {
2217 $this->_iNewsRealStatus = 1;
2243 $this->_oProduct = $oProduct;
2263 if ( $this->_iActPage === null ) {
2265 $this->_iActPage = ( $this->_iActPage < 0 ) ? 0 : $this->_iActPage;
2279 if ( $this->_oActTag === null ) {
2280 $this->_oActTag =
new stdClass();
2289 $this->_oActTag->link = $sLink ? $sLink : $this->
getConfig()->getShopHomeURL().$oSeoEncoderTag->getStdTagUri( $sTag,
false );
2291 return $this->_oActTag;
2306 if ( $this->_oActVendor === null ) {
2307 $this->_oActVendor =
false;
2309 $sVendorId = $sVendorId ? str_replace(
'v_',
'', $sVendorId ) : $sVendorId;
2310 $oVendor =
oxNew(
'oxvendor' );
2311 if ( $oVendor->load( $sVendorId ) ) {
2312 $this->_oActVendor = $oVendor;
2331 if ( $this->_oActManufacturer === null ) {
2333 $this->_oActManufacturer =
false;
2335 $oManufacturer =
oxNew(
'oxmanufacturer' );
2336 if ( $oManufacturer->load( $sManufacturerId ) ) {
2337 $this->_oActManufacturer = $oManufacturer;
2353 $this->_oActVendor = $oVendor;
2365 $this->_oActManufacturer = $oManufacturer;
2375 if ( $this->_oActSearch === null ) {
2376 $this->_oActSearch =
new stdClass();
2377 $sUrl = $this->
getConfig()->getShopHomeURL();
2378 $this->_oActSearch->link =
"{$sUrl}cl=search";
2402 $this->_oCategoryTree = $oCatTree;
2424 $this->_oManufacturerTree = $oManufacturerTree;
2446 if ( $this->_blTop5Action ) {
2447 if ( $this->_aTop5ArticleList === null ) {
2448 $this->_aTop5ArticleList =
false;
2450 if (
$myConfig->getConfigParam(
'bl_perfLoadAktion' ) ) {
2452 $oArtList =
oxNew(
'oxarticlelist' );
2453 $oArtList->loadTop5Articles( $iCount );
2454 if ( $oArtList->count() ) {
2455 $this->_aTop5ArticleList = $oArtList;
2471 if ( $this->_blBargainAction ) {
2472 if ( $this->_aBargainArticleList === null ) {
2473 $this->_aBargainArticleList = array();
2474 if ( $this->
getConfig()->getConfigParam(
'bl_perfLoadAktion' ) ) {
2475 $oArtList =
oxNew(
'oxarticlelist' );
2476 $oArtList->loadActionArticles(
'OXBARGAIN' );
2477 if ( $oArtList->count() ) {
2478 $this->_aBargainArticleList = $oArtList;
2496 if ( $this->_blLowOrderPrice === null && ( $oBasket = $this->
getSession()->getBasket() ) ) {
2497 $this->_blLowOrderPrice = $oBasket->isBelowMinOrderPrice();
2536 foreach ( $this->_aBlockRedirectParams as $sParam ) {
2573 $this->_aManufacturerlist = $aList;
2585 $this->_oRootVendor = $oVendor;
2607 $this->_oRootManufacturer = $oManufacturer;
2627 if ( $this->_sVendorId === null ) {
2628 $this->_sVendorId =
false;
2630 $this->_sVendorId = $oVendor->getId();
2643 if ( $this->_sManufacturerId === null ) {
2644 $this->_sManufacturerId =
false;
2646 $this->_sManufacturerId = $oManufacturer->getId();
2675 $this->_aSearchCatTree = $aTree;
2685 return $this->
getConfig()->getShopHomeURL().
'cnid=oxmore';
2707 if ( !isset( $this->_aContents[$sIdent] ) ) {
2708 $this->_aContents[$sIdent] =
oxNew(
'oxcontent' );
2709 $this->_aContents[$sIdent]->loadByIdent( $sIdent );
2711 return $this->_aContents[$sIdent];
2731 if ( $this->_aMustFillFields === null ) {
2732 $this->_aMustFillFields =
false;
2735 $aMustFillFields = $this->
getConfig()->getConfigParam(
'aMustFillFields' );
2736 if ( is_array( $aMustFillFields ) ) {
2737 $this->_aMustFillFields = array_flip( $aMustFillFields );
2753 if ( isset( $aMustFillFields[$sField] ) ) {
2768 if ( $this->_sFormId === null ) {
2773 return $this->_sFormId;
2783 if ( $this->_blCanAcceptFormData === null ) {
2784 $this->_blCanAcceptFormData =
false;
2790 if ( $sFormId && $sFormId === $sSessionFormId ) {
2791 $this->_blCanAcceptFormData =
true;
2797 return $this->_blCanAcceptFormData;
2807 if (isset($this->_oPromoFinishedList)) {
2808 return $this->_oPromoFinishedList;
2810 $this->_oPromoFinishedList =
oxNew(
'oxActionList' );
2811 $this->_oPromoFinishedList->loadFinishedByCount(2);
2812 return $this->_oPromoFinishedList;
2822 if (isset($this->_oPromoCurrentList)) {
2823 return $this->_oPromoCurrentList;
2825 $this->_oPromoCurrentList =
oxNew(
'oxActionList' );
2826 $this->_oPromoCurrentList->loadCurrent();
2827 return $this->_oPromoCurrentList;
2837 if (isset($this->_oPromoFutureList)) {
2838 return $this->_oPromoFutureList;
2840 $this->_oPromoFutureList =
oxNew(
'oxActionList' );
2841 $this->_oPromoFutureList->loadFutureByCount(2);
2842 return $this->_oPromoFutureList;
2852 if (isset($this->_blShowPromotions)) {
2853 return $this->_blShowPromotions;
2855 $this->_blShowPromotions =
false;
2856 if (
oxNew(
'oxActionList')->areAnyActivePromotions()) {
2859 return $this->_blShowPromotions;
2869 if ( $this->_blEnabledPrivateSales === null ) {
2870 $this->_blEnabledPrivateSales = (bool) $this->
getConfig()->getConfigParam(
'blPsLoginEnabled' );
2871 if ( $this->_blEnabledPrivateSales && ( $blCanPreview =
oxRegistry::getUtils()->canPreview() ) !== null ) {
2872 $this->_blEnabledPrivateSales = !$blCanPreview;
2885 return oxRegistry::get(
"oxInputValidator")->getFieldValidationErrors();
2907 $this->_blRootCatChanged = $blRootCatChanged;
2927 if ( $this->_aInvoiceAddress == null ) {
2930 $this->_aInvoiceAddress = $aAddress;
2943 if ( $this->_aDeliveryAddress == null ) {
2946 if ( !$oConfig->getRequestParameter(
'reloadaddress' ) ) {
2947 $this->_aDeliveryAddress = $oConfig->getRequestParameter(
'deladr');
2962 $this->_aDeliveryAddress = $aDeliveryAddress;
2974 $this->_aInvoiceAddress = $aAddress;
2984 if ( $this->_sActiveUsername == null ) {
2985 $this->_sActiveUsername =
false;
2988 $this->_sActiveUsername = $sUsername;
2989 } elseif ( $oUser = $this->
getUser() ) {
2990 $this->_sActiveUsername = $oUser->oxuser__oxusername->value;
3050 return (
int) $this->
getConfig()->getConfigParam(
"iNewBasketItemMessage" );
3062 return $this->
getConfig()->getConfigParam(
"bl".$sName.
"Enabled" );
3072 if ( $this->_blFbWidgetsOn === null ) {
3076 $this->_blFbWidgetsOn = (bool) $oUtils->getOxCookie(
"fbwidgetson" );
3088 return (
bool) $this->
getConfig()->getConfigParam(
"blEnableDownloads" );
3098 return (
bool) $this->
getConfig()->getConfigParam(
'blShowRememberMe');
3113 if ( $oConfig->getConfigParam(
'blShowNetPrice' ) || $oConfig->getConfigParam(
'bl_perfCalcVatOnlyForBasketOrder' ) ) {
3115 } elseif ( $oUser && $oUser->isPriceViewModeNetto() ) {
3129 return (
bool) $this->
getConfig()->getConfigParam(
'bl_perfLoadPrice' );
3139 return (
bool) $this->_blShowTagCloud && $this->
getConfig()->getConfigParam(
"blShowTags" );
3152 $oWishUser =
oxNew(
'oxuser' );
3153 if ( $oWishUser->load( $sUserId ) ) {