news.php

Go to the documentation of this file.
00001 <?php
00002 
00007 class News extends oxUBase
00008 {
00013     protected $_oNewsList = null;
00018     protected $_sThisTemplate = 'page/info/news.tpl';
00019 
00024     protected $_blTop5Action = true;
00025 
00030     protected $_blBargainAction = true;
00031 
00037     public function getNews()
00038     {
00039         if ( $this->_oNewsList === null ) {
00040             $this->_oNewsList = false;
00041             $oActNews = oxNew( 'oxnewslist' );
00042             $oActNews->loadNews();
00043 
00044             if ( count($oActNews) ) {
00045                 $this->_oNewsList = $oActNews;
00046             }
00047         }
00048         return $this->_oNewsList;
00049     }
00050 
00051     
00057     public function getBreadCrumb()
00058     {
00059         $aPaths = array();
00060         $aPath  = array();
00061         
00062         $aPath['title'] = oxLang::getInstance()->translateString( 'PAGE_INFO_NEWS_TITLE', oxLang::getInstance()->getBaseLanguage(), false );
00063         $aPath['link']  = $this->getLink();
00064         
00065         $aPaths[] = $aPath;
00066         
00067         return $aPaths;
00068     }
00069 
00070 
00071 }