| 1 | <?php namespace Humweb\Breadcrumbs; |
||
| 6 | class Breadcrumbs extends Collection |
||
| 7 | { |
||
| 8 | |||
| 9 | /** |
||
| 10 | * Add crumb to collection |
||
| 11 | * |
||
| 12 | * @param string $label label for link |
||
| 13 | * @param string $url |
||
| 14 | */ |
||
| 15 | public function add($label, $url = '') |
||
| 22 | |||
| 23 | |||
| 24 | /** |
||
| 25 | * Clear all breadcrumbs |
||
| 26 | * |
||
| 27 | * @return Breadcrumb |
||
| 28 | */ |
||
| 29 | public function clear() |
||
| 35 | |||
| 36 | |||
| 37 | /** |
||
| 38 | * Render breadcrumbs |
||
| 39 | * |
||
| 40 | * @param string $presenter |
||
| 41 | * |
||
| 42 | * @return string |
||
| 43 | */ |
||
| 44 | public function render($presenter = null) |
||
| 58 | } |
||
| 59 |