public function tagsAction() { $siteId = $this->services->getUtilityService()->getSiteId(); $tagsResultSet = $this->services->getTagService()->findSiteTags($siteId); $this->extractTagParameters($method, $searchTags, $includeTags, $excludeTags); $pages = $this->getPagesTable($siteId, $includeTags, $excludeTags, $method === 'and', DbViewPages::CLEANRATING, Order::DESCENDING, 1, 10); return new ViewModel(array('siteId' => $siteId, 'tags' => $tagsResultSet, 'table' => $pages, 'method' => $method, 'searchTags' => $searchTags)); }