links.php

Go to the documentation of this file.
00001 <?php
00002 
00009 class Links extends oxUBase
00010 {
00011 
00017     protected $_sThisTemplate = 'page/info/links.tpl';
00018 
00024     protected $_oLinksList = null;
00025 
00031     public function getLinksList()
00032     {
00033         if ($this->_oLinksList === null) {
00034             $this->_oLinksList = false;
00035             // Load links
00036             $oLinksList = oxNew("oxlist");
00037             $oLinksList->init("oxlinks");
00038             $oLinksList->getList();
00039             $this->_oLinksList = $oLinksList;
00040         }
00041 
00042         return $this->_oLinksList;
00043     }
00044 
00050     public function getBreadCrumb()
00051     {
00052         $aPaths = array();
00053         $aPath = array();
00054         $iBaseLanguage = oxRegistry::getLang()->getBaseLanguage();
00055         $aPath['title'] = oxRegistry::getLang()->translateString('LINKS', $iBaseLanguage, false);
00056         $aPath['link'] = $this->getLink();
00057 
00058         $aPaths[] = $aPath;
00059 
00060         return $aPaths;
00061     }
00062 }