links.php

Go to the documentation of this file.
00001 <?php
00002 
00009 class Links extends oxUBase
00010 {
00015     protected $_sThisTemplate = 'page/info/links.tpl';
00016 
00021     protected $_oLinksList = null;
00022 
00028     public function getLinksList()
00029     {
00030         if ( $this->_oLinksList === null ) {
00031             $this->_oLinksList = false;
00032             // Load links
00033             $oLinksList = oxNew( "oxlist" );
00034             $oLinksList->init( "oxlinks" );
00035             $oLinksList->getList();
00036             $this->_oLinksList = $oLinksList;
00037         }
00038         return $this->_oLinksList;
00039     }
00040 
00046     public function getBreadCrumb()
00047     {
00048         $aPaths = array();
00049         $aPath  = array();
00050         $aPath['title'] = oxRegistry::getLang()->translateString( 'LINKS', oxRegistry::getLang()->getBaseLanguage(), false );
00051         $aPath['link']  = $this->getLink();
00052         
00053         $aPaths[] = $aPath;
00054         
00055         return $aPaths;
00056     }
00057 
00058 }