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 = '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 = 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 }