/** * Returns the Breadcrumbs for the ReportAdmin * @return ArrayList */ public function Breadcrumbs($unlinked = false) { $items = parent::Breadcrumbs($unlinked); // The root element should explicitly point to the root node. // Uses session state for current record otherwise. $items[0]->Link = singleton('ReportAdmin')->Link(); if ($this->reportObject) { //build breadcrumb trail to the current report $items->push(new ArrayData(array('Title' => $this->reportObject->title(), 'Link' => Controller::join_links($this->Link(), '?' . http_build_query(array('q' => $this->request->requestVar('q'))))))); } return $items; }