news.php

Go to the documentation of this file.
00001 <?php
00002 
00007 class News extends oxUBase
00008 {
00013     protected $_oNewsList = null;
00014 
00019     protected $_sThisTemplate = 'news.tpl';
00020 
00025     protected $_blTop5Action = true;
00026 
00031     protected $_blBargainAction = true;
00032 
00043     public function render()
00044     {
00045 
00046         $myConfig = $this->getConfig();
00047 
00048         parent::render();
00049 
00050         $this->_aViewData['news'] = $this->getNews();
00051 
00052         // loading actions
00053         $this->_loadActions();
00054 
00055         return $this->_sThisTemplate;
00056     }
00057 
00063     public function getNews()
00064     {
00065         if ( $this->_oNewsList === null ) {
00066             $this->_oNewsList = false;
00067             $oActNews = oxNew( 'oxnewslist' );
00068             $oActNews->loadNews();
00069             if ( count($oActNews) ) {
00070                 $this->_oNewsList = $oActNews;
00071             }
00072         }
00073         return $this->_oNewsList;
00074     }
00075 
00076 }

Generated on Wed May 13 13:25:55 2009 for OXID eShop CE by  doxygen 1.5.5