/** * Deletes this guestbook entry completely. */ public function delete() { UserGuestbookEntryEditor::deleteAllCompletely(array($this->entryID)); }
/** * @see Form::save() */ public function save() { parent::save(); $options = $this->getOptions(); $this->newGuestbookEntry = UserGuestbookEntryEditor::create($this->frame->getUser()->userID, $this->authorID, $this->authorname, $this->text, $this->ipAddress, (bool) $options['enableSmilies'], (bool) $options['enableHtml'], (bool) $options['enableBBCodes']); $this->saved(); HeaderUtil::redirect('index.php?page=UserGuestbook&userID=' . $this->frame->getUser()->userID . '&entryID=' . $this->newGuestbookEntry->entryID . SID_ARG_2ND_NOT_ENCODED . '#entry' . $this->newGuestbookEntry->entryID); }