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); } }
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); } }
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); } }
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())); }