Esempio n. 1
0
 /**
  * @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));
 }
Esempio n. 2
0
 /**
  * @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));
 }