public function execute() { parent::execute(); $entryEditor = new EntryEditor($this->entry); $entryEditor->updateCounters(array('visits' => $this->entry->visits + 1)); $this->executed(); HeaderUtil::redirect($this->entry->website); }
/** * @see \wcf\system\comment\manager\ICommentManager::updateCounter() */ public function updateCounter($objectID, $value) { $entry = new Entry($objectID); $editor = new EntryEditor($entry); $editor->updateCounters(array('comments' => $value)); }