Exemplo n.º 1
0
 protected function buildNavBar()
 {
     parent::buildNavBar();
     if ($this->post->id !== null) {
         $entry = $this->layout->navbar->popEntry();
         $this->layout->navbar->createEntry($this->post->getTitle(), sprintf('Post/Details?id=%s', $this->post->id));
         $this->layout->navbar->addEntry($entry);
     }
 }
Exemplo n.º 2
0
 protected function buildNavBar()
 {
     parent::buildNavBar();
     if ($this->newsletter->id !== null) {
         $last = $this->navbar->popEntry();
         $title = $this->newsletter->getCampaignTitle();
         $link = sprintf('Newsletter/Details?id=%s', $this->newsletter->id);
         $this->navbar->createEntry($title, $link);
         $this->navbar->addEntry($last);
     }
 }
Exemplo n.º 3
0
 protected function buildNavBar()
 {
     parent::buildNavBar();
     if ($this->id !== null) {
         $edit = $this->navbar->popEntry();
         $this->navbar->addEntry(new SwatNavBarEntry($this->tag->title, $this->getComponentName() . '/Details?id=' . $this->id));
         $this->navbar->addEntry($edit);
     }
 }
Exemplo n.º 4
0
 protected function buildNavBar()
 {
     AdminDBEdit::buildNavBar();
     $this->navbar->popEntry();
     $title = $this->isNew() ? CME::_('New %s') : CME::_('Edit %s');
     $this->navbar->createEntry(sprintf($title, $this->credit->getTitle()));
 }