00001 <?php 00002 00007 class News extends oxUBase 00008 { 00013 protected $_oNewsList = null; 00014 00019 protected $_sThisTemplate = 'page/info/news.tpl'; 00020 00025 protected $_blTop5Action = true; 00026 00031 protected $_blBargainAction = true; 00032 00038 public function getNews() 00039 { 00040 if ( $this->_oNewsList === null ) { 00041 $this->_oNewsList = false; 00042 $oActNews = oxNew( 'oxnewslist' ); 00043 $oActNews->loadNews(); 00044 00045 if ( count($oActNews) ) { 00046 $this->_oNewsList = $oActNews; 00047 } 00048 } 00049 return $this->_oNewsList; 00050 } 00051 00057 public function getBreadCrumb() 00058 { 00059 $aPaths[]['title'] = oxLang::getInstance()->translateString( 'PAGE_INFO_NEWS_TITLE', oxLang::getInstance()->getBaseLanguage(), false ); 00060 00061 return $aPaths; 00062 } 00063 00064 00065 }