oxcmp_news.php

Go to the documentation of this file.
00001 <?php
00002 
00007 class oxcmp_news extends oxView
00008 {
00013     protected $_blIsComponent = true;
00014 
00022     public function render()
00023     {
00024         parent::render();
00025 
00026         $myConfig = $this->getConfig();
00027 
00028         // news loading is disabled
00029         if ( !$myConfig->getConfigParam( 'bl_perfLoadNews' ) ||
00030               ( $myConfig->getConfigParam( 'blDisableNavBars' ) &&
00031                 $myConfig->getActiveView()->getIsOrderStep() ) ) {
00032             return;
00033         }
00034 
00035         // if news must be displayed only on start page ?
00036         if ( $myConfig->getConfigParam( 'bl_perfLoadNewsOnlyStart' ) &&
00037              $myConfig->getActiveView()->getClassName() != "start" ) {
00038             return;
00039         }
00040 
00041         $iNewsToLoad = $myConfig->getConfigParam( 'sCntOfNewsLoaded' );
00042         $iNewsToLoad = $iNewsToLoad?$iNewsToLoad:1;
00043 
00044         $oActNews = oxNew( 'oxnewslist' );
00045         $oActNews->loadNews( $iNewsToLoad );
00046 
00047         return $oActNews;
00048     }
00049 }

Generated on Tue Aug 18 09:21:08 2009 for OXID eShop CE by  doxygen 1.5.5