/**
  * @see	Form::save()
  */
 public function save()
 {
     MessageForm::save();
     // update item
     $this->item->update($this->subject, $this->text, $this->enableSmilies, $this->enableHtml, $this->enableBBCodes, TIME_NOW, $this->username, $this->item->editCount + 1, $this->item->timestamp, $this->item->authorID, $this->item->username, $this->item->isPublic, $this->item->isDeleted);
     // clear cache
     DynamicNewsItemEditor::clearCache($this->item->instanceID);
     // redirect
     if (!empty(WCF::getSession()->lastRequestURI)) {
         HeaderUtil::redirect(WCF::getSession()->lastRequestURI . '#newsPageModule' . $this->item->instanceID . 'Item' . $item->itemID);
     } else {
         HeaderUtil::redirect('index.php?page=Index');
     }
 }
 /**
  * @see	Action::execute()
  */
 public function execute()
 {
     parent::execute();
     // remove item
     DynamicNewsItemEditor::remove($this->itemID);
     // clear cache
     DynamicNewsItemEditor::clearCache($this->item->instanceID);
     // redirect
     if (!empty(WCF::getSession()->lastRequestURI)) {
         HeaderUtil::redirect(WCF::getSession()->lastRequestURI);
     } else {
         HeaderUtil::redirect('index.php?page=Index');
     }
     // call event
     $this->executed();
 }
 /**
  * @see	Form::save()
  */
 public function save()
 {
     parent::save();
     // create entry
     $item = DynamicNewsItemEditor::create($this->instanceID, $this->subject, $this->text, $this->enableSmilies, $this->enableHtml, $this->enableBBCodes, 0, '', 0, TIME_NOW, $this->user->userID, $this->user->username, false, true, $this->attachmentListEditor);
     // clear cache
     DynamicNewsItemEditor::clearCache($this->instanceID);
     // redirect
     if (!empty(WCF::getSession()->lastRequestURI)) {
         HeaderUtil::redirect(WCF::getSession()->lastRequestURI . '#newsPageModule' . $this->instanceID . 'Item' . $item->itemID);
     } else {
         HeaderUtil::redirect('index.php?page=Index');
     }
 }