00001 <?php
00002
00007 class News extends oxUBase
00008 {
00013 protected $_oNewsList = null;
00014
00019 protected $_sThisTemplate = 'news.tpl';
00020
00031 public function render()
00032 {
00033
00034 $myConfig = $this->getConfig();
00035
00036 parent::render();
00037
00038 $this->_aViewData['news'] = $this->getNews();
00039
00040
00041 $this->_loadActions();
00042
00043 return $this->_sThisTemplate;
00044 }
00045
00051 public function getNews()
00052 {
00053 if ( $this->_oNewsList === null ) {
00054 $this->_oNewsList = false;
00055 $oActNews = oxNew( 'oxnewslist' );
00056 $oActNews->loadNews();
00057 if ( count($oActNews) ) {
00058 $this->_oNewsList = $oActNews;
00059 }
00060 }
00061 return $this->_oNewsList;
00062 }
00063
00064 }