43 protected $_aServiceKeys = array(
'oximpressum',
'oxagb',
'oxsecurityinfo',
'oxdeliveryinfo',
'oxrightofwithdrawal',
'oxorderinfo',
'oxcredits' );
52 $this->_aServiceKeys = $aServiceKeys;
70 public function __construct( $sObjectsInListName =
'oxcontent' )
80 $this->
_load( self::TYPE_MAIN_MENU_LIST );
88 $this->
_load( self::TYPE_CATEGORY_MENU );
91 if ( $this->
count() ) {
92 foreach ( $this as $oContent ) {
94 if ( !isset( $aArray[$oContent->getCategoryId()] ) ) {
95 $aArray[$oContent->getCategoryId()] = array();
98 $aArray[$oContent->oxcontents__oxcatid->value][] = $oContent;
102 $this->_aArray = $aArray;
144 $this->
_load( self::TYPE_SERVICE_LIST );
153 $aExtractedContents = array();
154 foreach ( $this as $oContent ) {
155 $aExtractedContents[$oContent->getLoadId()] = $oContent;
158 $this->_aArray = $aExtractedContents;
172 $sSQLType =
" AND `oxtype` = " . $oDb->quote( $iType );
174 if ( $iType == self::TYPE_CATEGORY_MENU ) {
175 $sSQLAdd =
" AND `oxcatid` IS NOT NULL AND `oxsnippet` = '0'";
178 if ( $iType == self::TYPE_SERVICE_LIST ) {
180 $sSQLAdd =
" AND OXLOADID IN (" . $sIdents .
")";
184 $sSql =
"SELECT * FROM {$sViewName} WHERE `oxactive` = '1' $sSQLType AND `oxshopid` = " . $oDb->quote( $this->_sShopID ) .
" $sSQLAdd ORDER BY `oxloadid`";