/** * Show single tag * * @param void * @return null */ function view() { $tag = urldecode($this->request->get('tag')); $tags = Tags::buildIndex($this->active_project); $per_page = 30; $page = (int) $this->request->get('page'); if ($page < 1) { $page = 1; } // if list($objects, $pagination) = ProjectObjects::paginateByIds($tags[$tag]['objects'], $page, $per_page, STATE_VISIBLE, $this->logged_user->getVisibility()); $this->smarty->assign(array('tag' => $tag, 'objects' => $objects, 'pagination' => $pagination, 'tag_url_pattern' => Tags::getTagUrl($tag, $this->active_project, '-PAGE-'))); }