Exemplo n.º 1
0
 protected function initNavBar()
 {
     $this->navbar = new SwatNavBar();
     $this->navbar->link_last_entry = false;
     $this->navbar->separator = ' › ';
     $this->navbar->id = 'nav_bar';
     $this->navbar->createEntry(Blorg::_('Home'), '.');
 }
Exemplo n.º 2
0
 public function buildNavBar(SwatNavBar $navbar)
 {
     // save add/edit title defined in Inquisition package
     $title = $navbar->popEntry();
     // pop inquisition title defined in Inquisition package
     $navbar->popEntry();
     // pop question component
     $navbar->popEntry();
     // add inquisition
     if ($this->isQuiz()) {
         $navbar->createEntry($this->getCreditNavBarTitle(), sprintf('Credit/Details?id=%s', $this->credit->id));
     } elseif ($this->isEvaluation()) {
         $navbar->createEntry($this->getEvaluationNavBarTitle(), sprintf('Evaluation/Details?id=%s', $this->inquisition->id));
     } elseif ($this->inquisition instanceof InquisitionInquisition) {
         $navbar->createEntry($this->inquisition->title, sprintf('Inquisition/Details?id=%s', $this->inquisition->id));
     }
     // add back edit/add title
     $navbar->addEntry($title);
 }