| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <?php
- namespace ThurData\Servers\KerioEmail\Core\UI\Traits;
- /**
- * View Breadcrumb related functions
- *
- * @autor ThurData <info@thrudata.ch>
- */
- trait ViewBreadcrumb
- {
- protected $breadcrumbs = null;
-
- public function initBreadcrumbs()
- {
- $this->breadcrumbs = new \ThurData\Servers\KerioEmail\Core\UI\Helpers\BreadcrumbsHandler();
- }
-
- public function getBreadcrumbs()
- {
- return $this->breadcrumbs->getBreadcrumbs();
- }
- public function addBreadcrumb($url = null, $title = null, $order = null, $rawTitle = null)
- {
- $this->breadcrumbs->addBreadcrumb($url, $title, $order, $rawTitle);
- return $this;
- }
- public function replaceBreadcrumbTitle($key = null, $value = null)
- {
- $this->breadcrumbs->replaceBreadcrumbTitle($key, $value);
- return $this;
- }
- public function disableBreadcrumb($key = null)
- {
- $this->breadcrumbs->disableBreadcrumb($key);
- return $this;
- }
- }
|