XOOPS  2.6.0
Breadcrumb.php
Go to the documentation of this file.
1 <?php
2 /*
3  You may not change or alter any portion of this comment or credits
4  of supporting developers from this source code or any supporting source code
5  which is considered copyrighted (c) material of the original comment or credit authors.
6 
7  This program is distributed in the hope that it will be useful,
8  but WITHOUT ANY WARRANTY; without even the implied warranty of
9  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10  */
11 
12 namespace Xmf\Template;
13 
28 {
32  private $items = array();
33 
39  protected function init()
40  {
41  $this->setTemplate('module:xmf/xmf_breadcrumb.tpl');
42  }
43 
54  public function setItems($items)
55  {
56  $this->items = $items;
57  }
58 
64  protected function render()
65  {
66  $this->tpl->assign('xmf_breadcrumb_items', $this->items);
67  }
68 }