| 1 | <?php |
||
| 27 | class Breadcrumb extends AbstractTemplate |
||
| 28 | { |
||
| 29 | /** |
||
| 30 | * @var array |
||
| 31 | */ |
||
| 32 | private $items = array(); |
||
| 33 | |||
| 34 | /** |
||
| 35 | * initialization run by parent::__construct |
||
| 36 | * |
||
| 37 | * @return void |
||
| 38 | */ |
||
| 39 | protected function init() |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Set the items to be shown. Items are specified as an array of |
||
| 46 | * breadcrumb items. Each breadcrumb item is an array of: |
||
| 47 | * - 'caption' => ready to display string item, |
||
| 48 | * - 'link' => url (omit to disable link on this item) |
||
| 49 | * |
||
| 50 | * @param array $items array of breadcrumb items |
||
| 51 | * |
||
| 52 | * @return Breadcrumb |
||
| 53 | */ |
||
| 54 | public function setItems($items) |
||
| 59 | |||
| 60 | /** |
||
| 61 | * Assigning content to template |
||
| 62 | * |
||
| 63 | * @return void |
||
| 64 | */ |
||
| 65 | protected function render() |
||
| 69 | } |
||
| 70 |