OXID eShop CE  4.10.4
 All Classes Namespaces Files Functions Variables Pages
links.php
Go to the documentation of this file.
1 <?php
2 
9 class Links extends oxUBase
10 {
11 
17  protected $_sThisTemplate = 'page/info/links.tpl';
18 
24  protected $_oLinksList = null;
25 
31  public function getLinksList()
32  {
33  if ($this->_oLinksList === null) {
34  $this->_oLinksList = false;
35  // Load links
36  $oLinksList = oxNew("oxlist");
37  $oLinksList->init("oxlinks");
38  $oLinksList->getList();
39  $this->_oLinksList = $oLinksList;
40  }
41 
42  return $this->_oLinksList;
43  }
44 
50  public function getBreadCrumb()
51  {
52  $aPaths = array();
53  $aPath = array();
54  $iBaseLanguage = oxRegistry::getLang()->getBaseLanguage();
55  $aPath['title'] = oxRegistry::getLang()->translateString('LINKS', $iBaseLanguage, false);
56  $aPath['link'] = $this->getLink();
57 
58  $aPaths[] = $aPath;
59 
60  return $aPaths;
61  }
62 }