Exemplo n.º 1
0
 protected function buildNavBar()
 {
     parent::buildNavBar();
     // put edit entry at the end
     $title = $this->navbar->popEntry();
     $this->helper->buildNavBar($this->navbar);
     $this->navbar->addEntry($title);
 }
Exemplo n.º 2
0
 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);
 }
Exemplo n.º 3
0
 protected function buildNavBar()
 {
     parent::buildNavBar();
     $this->helper->buildNavBar($this->navbar);
 }