/** * @see \wcf\page\IPage::show() */ public function show() { parent::show(); // register visit VisitCountHandler::getInstance()->count(); // count click $pageEditor = new PageEditor($this->page); $pageEditor->updateCounters(array('clicks' => 1)); }
/** * @see \wcf\system\comment\manager\ICommentManager::updateCounter() */ public function updateCounter($objectID, $value) { $page = PageCache::getInstance()->getPage($objectID); $editor = new PageEditor($page); $editor->updateCounters(array('comments' => $value)); }