protected function buildNavBar() { parent::buildNavBar(); // put edit entry at the end $title = $this->navbar->popEntry(); $this->helper->buildNavBar($this->navbar); $this->navbar->addEntry($title); }
public function buildNavBar(SwatNavBar $navbar) { // save add/edit title defined in Inquisition package $title = $navbar->popEntry(); $this->question_helper->buildNavBar($navbar); // remove question defined in Inquisition package $question = $navbar->popEntry(); // add question $inquisition = $this->question_helper->getInquisition(); if ($inquisition instanceof InquisitionInquisition) { $navbar->createEntry($this->getQuestionTitle(), sprintf('Question/Details?id=%s&inquisition=%s', $this->question->id, $inquisition->id)); } else { $navbar->createEntry($this->getQuestionTitle(), sprintf('Question/Details?id=%s', $this->question->id)); } // add back edit/add title $navbar->addEntry($title); }
protected function buildNavBar() { parent::buildNavBar(); $this->helper->buildNavBar($this->navbar); }