Example #1
0
 public function render()
 {
     $template = $this->getTemplate();
     $template->setFile(__DIR__ . '/pageTagsPicking.latte');
     $tags = $this->tagFacade->fetchTags((new TagQuery())->indexedByTagId())->toArray();
     $template->tags = $tags;
     $template->pageTags = isset($this->page) ? $this->page->getTags() : [];
     $template->render();
 }
Example #2
0
 public function render()
 {
     $template = $this->getTemplate();
     $template->setFile(__DIR__ . '/tagOverview.latte');
     $tagQuery = new TagQuery();
     $tagQuery->orderByID('DESC')->indexedByTagId();
     if ($this->name !== null) {
         $tagQuery->likeTagName($this->name);
     }
     if (empty($this->tags)) {
         $this->tags = $this->tagFacade->fetchTags($tagQuery)->toArray();
     }
     $template->tags = $this->tags;
     $template->render();
 }