public function save() { MessageForm::save(); if ($this->time != '') { $dateTime = \DateTime::createFromFormat("Y-m-d H:i", $this->time, WCF::getUser()->getTimeZone()); } $data = array('subject' => $this->subject, 'message' => $this->text, 'teaser' => $this->teaser, 'time' => $this->time != '' ? $dateTime->getTimestamp() : TIME_NOW, 'enableBBCodes' => $this->enableBBCodes, 'showSignature' => $this->showSignature, 'enableHtml' => $this->enableHtml, 'imageID' => $this->imageID ?: null, 'enableSmilies' => $this->enableSmilies, 'lastChangeTime' => TIME_NOW, 'isDisabled' => $this->time != '' && $dateTime->getTimestamp() > TIME_NOW ? 1 : 0, 'lastEditor' => WCF::getUser()->username, 'lastEditorID' => WCF::getUser()->userID); $newsData = array('data' => $data, 'categoryIDs' => $this->categoryIDs, 'tags' => $this->tags, 'attachmentHandler' => $this->attachmentHandler); $action = new NewsAction(array($this->newsID), 'update', $newsData); $resultValues = $action->executeAction(); $this->saved(); // re-define after saving $this->news = new News($this->newsID); if (WCF::getSession()->getPermission('user.cms.news.canStartPoll') && MODULE_POLL) { $pollID = PollManager::getInstance()->save($this->news->newsID); if ($pollID && $pollID != $this->news->pollID) { $editor = new NewsEditor($this->news); $editor->update(array('pollID' => $pollID)); } else { if (!$pollID && $this->news->pollID) { $editor = new NewsEditor($this->news); $editor->update(array('pollID' => null)); } } } HeaderUtil::redirect(LinkHandler::getInstance()->getLink('News', array('application' => 'cms', 'object' => $this->news))); exit; }
/** * @see \wcf\form\IForm::save() */ public function save() { MessageForm::save(); // save the news update $this->objectAction = new NewsUpdateAction(array($this->update), 'update', array('data' => array('subject' => $this->subject, 'text' => $this->text))); $this->objectAction->executeAction(); $this->saved(); HeaderUtil::redirect(LinkHandler::getInstance()->getLink('News', array('application' => 'news', 'object' => $this->news))); exit; }
/** * @see \wcf\form\IForm::save() */ public function save() { MessageForm::save(); // save file $data = array_merge($this->additionalFields, array('description' => $this->text, 'subject' => $this->subject)); $this->objectAction = new EntryFileAction(array($this->entryFile), 'update', array('data' => $data)); $this->objectAction->executeAction(); $this->saved(); HeaderUtil::redirect(LinkHandler::getInstance()->getLink('Entry', array('application' => 'filebase', 'object' => $this->entry))); exit; }
/** * @see \wcf\form\IForm::save() */ public function save() { MessageForm::save(); // save entry $data = array_merge($this->additionalFields, array('languageID' => $this->languageID, 'teaser' => $this->teaser, 'subject' => $this->subject, 'message' => $this->text, 'website' => $this->website)); $entryData = array('data' => $data, 'categoryIDs' => $this->categoryIDs, 'attachmentHandler' => $this->attachmentHandler); if (MODULE_TAGGING) { $entryData['tags'] = $this->tags; } $this->objectAction = new EntryAction(array($this->entry), 'update', $entryData); $this->objectAction->executeAction(); $this->saved(); HeaderUtil::redirect(LinkHandler::getInstance()->getLink('Entry', array('application' => 'filebase', 'object' => $this->entry))); exit; }
/** * @see \wcf\form\IForm::save() */ public function save() { MessageForm::save(); // save the news update $this->objectAction = new EntryUpdateAction(array($this->update), 'update', array('data' => array('subject' => $this->subject, 'message' => $this->text))); $this->objectAction->executeAction(); // set news as new if ($this->setEntryAsNew) { $sql = "UPDATE cms" . WCF_N . "_news_entry\n SET time = ?\n WHERE entryID = ?"; $statement = WCF::getDB()->prepareStatement($sql); $statement->execute(array(TIME_NOW, $this->entryID)); $sql = "DELETE FROM wcf" . WCF_N . "_tracked_visit\n WHERE objectTypeID = ?\n AND objectID = ?"; $statement = WCF::getDB()->prepareStatement($sql); $statement->execute(array(VisitTracker::getInstance()->getObjectTypeID('de.incendium.cms.news.entry'), $this->entryID)); // reset the user storage data UserStorageHandler::getInstance()->resetAll('cmsUnreadNewsEntries'); } $this->saved(); HeaderUtil::redirect(LinkHandler::getInstance()->getLink('NewsEntry', array('application' => 'cms', 'object' => $this->entry))); exit; }
/** * @see \wcf\form\IForm::save() */ public function save() { parent::save(); $this->objectAction = new NewsUpdateAction(array(), 'create', array('data' => array('newsID' => $this->newsID, 'time' => TIME_NOW, 'userID' => WCF::getUser()->userID ?: null, 'username' => WCF::getUser()->userID ? WCF::getUser()->username : $this->username, 'subject' => $this->subject, 'text' => $this->text, 'enableSmilies' => $this->enableSmilies, 'enableHtml' => $this->enableHtml, 'enableBBCodes' => $this->enableBBCodes))); $this->objectAction->executeAction(); // update news entry $sql = "UPDATE\tnews" . WCF_N . "_news\n \t \tSET\tnewsUpdates = newsUpdates + 1\n \t \tWHERE\tnewsID = ?"; $statement = WCF::getDB()->prepareStatement($sql); $statement->execute(array($this->newsID)); // set news as new if ($this->setNewsAsNew) { $sql = "UPDATE\tnews" . WCF_N . "_news\n \t \t\tSET\ttime = ?\n\t \t \t\tWHERE\tnewsID = ?"; $statement = WCF::getDB()->prepareStatement($sql); $statement->execute(array(TIME_NOW, $this->newsID)); $sql = "DELETE FROM\twcf" . WCF_N . "_tracked_visit\n\t\t \t\tWHERE\t\tobjectTypeID = ?\n\t\t \t\tAND\t\tobjectID = ?"; $statement = WCF::getDB()->prepareStatement($sql); $statement->execute(array(VisitTracker::getInstance()->getObjectTypeID('de.voolia.news.entry'), $this->newsID)); } // redirect to news entry HeaderUtil::redirect(LinkHandler::getInstance()->getLink('News', array('application' => 'news', 'object' => $this->news))); exit; }
/** * @see \wcf\form\IForm::save() */ public function save() { parent::save(); $data = array('subject' => $this->subject, 'time' => TIME_NOW, 'text' => $this->text, 'teaser' => $this->teaser, 'userID' => WCF::getUser()->userID ?: null, 'username' => WCF::getUser()->userID ? WCF::getUser()->username : $this->username, 'languageID' => $this->languageID, 'enableBBCodes' => $this->enableBBCodes, 'enableHtml' => $this->enableHtml, 'enableSmilies' => $this->enableSmilies, 'isActive' => 1, 'isDeleted' => 0, 'isHot' => $this->isHot, 'views' => 0); // delayed publication if ($this->enableDelayedPublication) { $data['isPublished'] = 0; $dateTime = \DateTime::createFromFormat('Y-m-d H:i', $this->publicationDate, WCF::getUser()->getTimeZone()); $data['publicationDate'] = $dateTime->getTimestamp(); } // automatic archivation if ($this->enableAutomaticArchiving) { $dateTime = \DateTime::createFromFormat('Y-m-d H:i', $this->archivingDate, WCF::getUser()->getTimeZone()); $data['archivingDate'] = $dateTime->getTimestamp(); } // news picture if (NEWS_ENABLE_NEWSPICTURE && $this->pictureID) { $data['pictureID'] = $this->pictureID; } $newsData = array('attachmentHandler' => $this->attachmentHandler, 'categoryIDs' => $this->categoryIDs, 'data' => $data); if (NEWS_ENTRY_ENABLE_SOURCES) { $newsData['sources'] = $this->sources; } if (MODULE_TAGGING) { $newsData['tags'] = $this->tags; } $this->objectAction = new NewsAction(array(), 'create', $newsData); $resultvalues = $this->objectAction->executeAction(); $this->news = $resultvalues['returnValues']; // quotes MessageQuoteManager::getInstance()->saved(); // polls if ($this->canCreatePoll()) { $pollID = PollManager::getInstance()->save($this->news->newsID); if ($pollID) { $newsEditor = new NewsEditor($this->news); $newsEditor->update(array('pollID' => $pollID)); } } $this->saved(); HeaderUtil::redirect(LinkHandler::getInstance()->getLink('News', array('application' => 'news', 'object' => $this->news))); exit; }
/** * @see \wcf\form\IForm::save() */ public function save() { MessageForm::save(); // save message $data = array_merge($this->additionalFields, array('message' => $this->text, 'enableBBCodes' => $this->enableBBCodes, 'enableHtml' => $this->enableHtml, 'enableSmilies' => $this->enableSmilies, 'showSignature' => $this->showSignature)); if ($this->conversation->isDraft && !$this->draft) { $data['time'] = TIME_NOW; } if (!$this->draft) { $data['lastEditTime'] = TIME_NOW; $data['editCount'] = $this->message->editCount + 1; } $messageData = array('data' => $data, 'attachmentHandler' => $this->attachmentHandler); $this->objectAction = new ConversationMessageAction(array($this->message), 'update', $messageData); $this->objectAction->executeAction(); // update conversation if ($this->isFirstMessage) { $data = array('subject' => $this->subject, 'isDraft' => $this->draft ? 1 : 0, 'participantCanInvite' => $this->participantCanInvite); if ($this->draft) { $data['draftData'] = serialize(array('participants' => $this->participantIDs, 'invisibleParticipants' => $this->invisibleParticipantIDs)); } $conversationData = array('data' => $data); if ($this->conversation->isDraft && !$this->draft) { $conversationData['participants'] = $this->participantIDs; $conversationData['invisibleParticipants'] = $this->invisibleParticipantIDs; $conversationData['data']['time'] = $conversationData['data']['lastPostTime'] = TIME_NOW; } $conversationAction = new ConversationAction(array($this->conversation), 'update', $conversationData); $conversationAction->executeAction(); } $this->saved(); // forward HeaderUtil::redirect(LinkHandler::getInstance()->getLink('Conversation', array('object' => $this->conversation, 'messageID' => $this->messageID)) . '#message' . $this->messageID); exit; }
/** * @see \wcf\form\IForm::save() */ public function save() { MessageForm::save(); if (WCF::getSession()->getPermission('mod.news.canEditNewsWithoutNote') && $this->editNoteSuppress == 1) { $this->news->editCount = 0; $this->editReason = ''; $this->news->editTime = 0; } // save the news entry $data = array('subject' => $this->subject, 'text' => $this->text, 'teaser' => $this->teaser, 'languageID' => $this->languageID, 'enableBBCodes' => $this->enableBBCodes, 'enableHtml' => $this->enableHtml, 'enableSmilies' => $this->enableSmilies, 'editCount' => $this->news->editCount + 1, 'editReason' => $this->editReason, 'editTime' => TIME_NOW, 'editUser' => WCF::getUser()->username, 'editReason' => $this->editReason, 'editNoteSuppress' => $this->editNoteSuppress, 'isHot' => $this->isHot); // delayed publication if ($this->enableDelayedPublication) { $data['isPublished'] = 0; $dateTime = \DateTime::createFromFormat('Y-m-d H:i', $this->publicationDate, WCF::getUser()->getTimeZone()); $data['publicationDate'] = $dateTime->getTimestamp(); } else { $data['isPublished'] = 1; $data['publicationDate'] = 0; } // automatic archivation if ($this->enableAutomaticArchiving) { $dateTime = \DateTime::createFromFormat('Y-m-d H:i', $this->archivingDate, WCF::getUser()->getTimeZone()); $data['archivingDate'] = $dateTime->getTimestamp(); } else { $data['archivingDate'] = 0; } // news picture if (NEWS_ENABLE_NEWSPICTURE && $this->pictureID) { $data['pictureID'] = $this->pictureID; } $newsData = array('attachmentHandler' => $this->attachmentHandler, 'categoryIDs' => $this->categoryIDs, 'data' => $data); if (NEWS_ENTRY_ENABLE_SOURCES) { $newsData['sources'] = $this->sources; } if (MODULE_TAGGING) { $newsData['tags'] = $this->tags; } // save poll if ($this->canCreatePoll()) { $pollID = PollManager::getInstance()->save($this->news->newsID); if ($pollID) { $newsEditor = new NewsEditor($this->news); $newsEditor->update(array('pollID' => $pollID)); } } $this->objectAction = new NewsAction(array($this->news), 'update', $newsData); $this->objectAction->executeAction(); $this->saved(); HeaderUtil::redirect(LinkHandler::getInstance()->getLink('News', array('application' => 'news', 'object' => $this->news))); exit; }
/** * @see \wcf\form\IForm::save() */ public function save() { MessageForm::save(); // save the news entry $data = array('subject' => $this->subject, 'message' => $this->text, 'languageID' => $this->languageID, 'enableBBCodes' => $this->enableBBCodes, 'enableHtml' => $this->enableHtml, 'enableSmilies' => $this->enableSmilies, 'isFeatured' => $this->isFeatured); // delayed publication if ($this->enableDelayedPublication) { $data['isPublished'] = 0; $dateTime = \DateTime::createFromFormat('Y-m-d H:i', $this->publicationDate, WCF::getUser()->getTimeZone()); $data['publicationDate'] = $dateTime->getTimestamp(); } else { $data['isPublished'] = 1; $data['publicationDate'] = 0; } if (WCF::getSession()->getPermission('user.news.canEditEntryDate')) { $data['time'] = $this->entryDateObj->getTimestamp(); } $entryData = array('attachmentHandler' => $this->attachmentHandler, 'categoryIDs' => $this->categoryIDs, 'isEdit' => true, 'editReason' => $this->editReason, 'data' => $data); if (MODULE_TAGGING) { $entryData['tags'] = $this->tags; } // save poll if ($this->canCreatePoll()) { $pollID = PollManager::getInstance()->save($this->entry->entryID); if ($pollID) { $entryEditor = new EntryEditor($this->entry); $entryEditor->update(array('pollID' => $pollID)); } } $this->objectAction = new EntryAction(array($this->entry), 'update', $entryData); $this->objectAction->executeAction(); $this->saved(); HeaderUtil::redirect(LinkHandler::getInstance()->getLink('NewsEntry', array('application' => 'cms', 'object' => $this->entry))); exit; }
/** * @see \wcf\form\IForm::save() */ public function save() { parent::save(); // save message $data = array_merge($this->additionalFields, array('conversationID' => $this->conversationID, 'message' => $this->text, 'time' => TIME_NOW, 'userID' => WCF::getUser()->userID, 'username' => WCF::getUser()->username, 'enableBBCodes' => $this->enableBBCodes, 'enableHtml' => $this->enableHtml, 'enableSmilies' => $this->enableSmilies, 'showSignature' => $this->showSignature)); $messageData = array('data' => $data, 'attachmentHandler' => $this->attachmentHandler); $this->objectAction = new ConversationMessageAction(array(), 'create', $messageData); $resultValues = $this->objectAction->executeAction(); MessageQuoteManager::getInstance()->saved(); $this->saved(); // forward HeaderUtil::redirect(LinkHandler::getInstance()->getLink('Conversation', array('object' => $this->conversation, 'messageID' => $resultValues['returnValues']->messageID)) . '#message' . $resultValues['returnValues']->messageID); exit; }
/** * @see \wcf\form\IForm::save() */ public function save() { parent::save(); $data = array('subject' => $this->subject, 'time' => TIME_NOW, 'message' => $this->text, 'teaser' => $this->teaser, 'website' => $this->website, 'userID' => WCF::getUser()->userID ?: null, 'username' => WCF::getUser()->userID ? WCF::getUser()->username : $this->username, 'languageID' => $this->languageID, 'isDisabled' => WCF::getSession()->getPermission('user.linklist.canAddEntryWithoutModeration') ? 0 : 1); $linkData = array('attachmentHandler' => $this->attachmentHandler, 'categoryIDs' => $this->categoryIDs, 'data' => $data); if (MODULE_TAGGING) { $linkData['tags'] = $this->tags; } $this->objectAction = new EntryAction(array(), 'create', $linkData); $resultValues = $this->objectAction->executeAction(); $this->saved(); if ($resultValues['returnValues']->isDisabled) { HeaderUtil::delayedRedirect(LinkHandler::getInstance()->getLink('LinklistOverview', array('application' => 'linklist')), WCF::getLanguage()->get('linklist.entry.moderation.redirect'), 30); } else { HeaderUtil::redirect(LinkHandler::getInstance()->getLink('Entry', array('application' => 'linklist', 'object' => $resultValues['returnValues']))); } exit; }
/** * @see \wcf\form\IForm::save() */ public function save() { parent::save(); // save entry $data = array_merge($this->additionalFields, array('languageID' => $this->languageID, 'time' => TIME_NOW, 'userID' => WCF::getUser()->userID, 'username' => WCF::getUser()->username, 'subject' => $this->subject, 'teaser' => $this->teaser, 'message' => $this->text, 'website' => $this->website, 'isDisabled' => WCF::getSession()->getPermission('user.filebase.canAddEntryWithoutModeration') ? 0 : 1)); $fileData = array('data' => $data, 'fileSubject' => $this->fileSubject, 'categoryIDs' => $this->categoryIDs, 'attachmentHandler' => $this->attachmentHandler, 'fileUpload' => $this->fileUpload); if (MODULE_TAGGING) { $fileData['tags'] = $this->tags; } $this->objectAction = new EntryAction(array(), 'create', $fileData); $resultValues = $this->objectAction->executeAction(); $this->saved(); if ($resultValues['returnValues']->isDisabled) { HeaderUtil::delayedRedirect(LinkHandler::getInstance()->getLink('FilebaseOverview', array('application' => 'filebase')), WCF::getLanguage()->get('filebase.file.moderation.redirect'), 30); } else { HeaderUtil::redirect(LinkHandler::getInstance()->getLink('Entry', array('application' => 'filebase', 'object' => $resultValues['returnValues']))); } exit; }
/** * @see \wcf\form\IForm::save() */ public function save() { parent::save(); $this->objectAction = new UserAction(array(WCF::getUser()), 'update', array('data' => array_merge($this->additionalFields, array('signature' => $this->text, 'signatureEnableBBCodes' => $this->enableBBCodes, 'signatureEnableHtml' => $this->enableHtml, 'signatureEnableSmilies' => $this->enableSmilies)))); $this->objectAction->executeAction(); SignatureCache::getInstance()->getSignature(new User(WCF::getUser()->userID)); $this->saved(); // show success message WCF::getTPL()->assign('success', true); }
/** * @see \wcf\form\IForm::save() */ public function save() { parent::save(); // save conversation $data = array_merge($this->additionalFields, array('subject' => $this->subject, 'time' => TIME_NOW, 'userID' => WCF::getUser()->userID, 'username' => WCF::getUser()->username, 'isDraft' => $this->draft ? 1 : 0, 'participantCanInvite' => $this->participantCanInvite)); if ($this->draft) { $data['draftData'] = serialize(array('participants' => $this->participantIDs, 'invisibleParticipants' => $this->invisibleParticipantIDs)); } $conversationData = array('data' => $data, 'attachmentHandler' => $this->attachmentHandler, 'messageData' => array('message' => $this->text, 'enableBBCodes' => $this->enableBBCodes, 'enableHtml' => $this->enableHtml, 'enableSmilies' => $this->enableSmilies, 'showSignature' => $this->showSignature)); if (!$this->draft) { $conversationData['participants'] = $this->participantIDs; $conversationData['invisibleParticipants'] = $this->invisibleParticipantIDs; } $this->objectAction = new ConversationAction(array(), 'create', $conversationData); $resultValues = $this->objectAction->executeAction(); MessageQuoteManager::getInstance()->saved(); $this->saved(); // forward HeaderUtil::redirect(LinkHandler::getInstance()->getLink('Conversation', array('object' => $resultValues['returnValues']))); exit; }
/** * @see \wcf\form\IForm::save() */ public function save() { parent::save(); $data = array('subject' => $this->subject, 'time' => TIME_NOW, 'message' => $this->text, 'userID' => WCF::getUser()->userID ?: null, 'username' => WCF::getUser()->userID ? WCF::getUser()->username : $this->username, 'languageID' => $this->languageID, 'enableBBCodes' => $this->enableBBCodes, 'enableHtml' => $this->enableHtml, 'enableSmilies' => $this->enableSmilies, 'isDisabled' => WCF::getSession()->getPermission('user.news.canCreateEntryWithoutModeration') ? 0 : 1, 'isDeleted' => 0, 'isFeatured' => $this->isFeatured, 'views' => 0); // delayed publication if ($this->enableDelayedPublication) { $data['isPublished'] = 0; $dateTime = \DateTime::createFromFormat('Y-m-d H:i', $this->publicationDate, WCF::getUser()->getTimeZone()); $data['publicationDate'] = $dateTime->getTimestamp(); } $entryData = array('attachmentHandler' => $this->attachmentHandler, 'categoryIDs' => $this->categoryIDs, 'data' => $data); if (MODULE_TAGGING) { $entryData['tags'] = $this->tags; } $this->objectAction = new EntryAction(array(), 'create', $entryData); $resultValues = $this->objectAction->executeAction(); $this->entry = $resultValues['returnValues']; // quotes MessageQuoteManager::getInstance()->saved(); // polls if ($this->canCreatePoll()) { $pollID = PollManager::getInstance()->save($this->entry->entryID); if ($pollID) { $entryEditor = new EntryEditor($this->entry); $entryEditor->update(array('pollID' => $pollID)); } } $this->saved(); if ($this->entry->isDisabled) { HeaderUtil::delayedRedirect(LinkHandler::getInstance()->getLink('NewsOverview', array('application' => 'cms')), WCF::getLanguage()->get('cms.news.form.moderation.redirect'), 30); } else { HeaderUtil::redirect(LinkHandler::getInstance()->getLink('NewsEntry', array('application' => 'cms', 'object' => $this->entry))); } exit; }
/** * @see \wcf\form\IForm::save() */ public function save() { parent::save(); // save file $data = array_merge($this->additionalFields, array('entryID' => $this->entryID, 'uploadTime' => TIME_NOW, 'subject' => $this->subject, 'description' => $this->text, 'isDisabled' => WCF::getSession()->getPermission('user.filebase.canAddEntryWithoutModeration') ? 0 : 1)); $fileData = array('data' => $data, 'entry' => $this->entry, 'fileUpload' => $this->fileUpload); $this->objectAction = new EntryFileAction(array(), 'create', $fileData); $resultValues = $this->objectAction->executeAction(); $this->saved(); if ($resultValues['returnValues']->isDisabled) { HeaderUtil::delayedRedirect(LinkHandler::getInstance()->getLink('FilebaseOverview', array('application' => 'filebase')), WCF::getLanguage()->get('filebase.entry.file.moderation.redirect'), 30); } else { HeaderUtil::redirect(LinkHandler::getInstance()->getLink('Entry', array('application' => 'filebase', 'object' => $this->entry))); } exit; }
/** * @see \wcf\form\IForm::save() */ public function save() { parent::save(); $this->objectAction = new EntryUpdateAction(array(), 'create', array('data' => array('entryID' => $this->entryID, 'time' => TIME_NOW, 'userID' => WCF::getUser()->userID ?: null, 'username' => WCF::getUser()->userID ? WCF::getUser()->username : $this->username, 'subject' => $this->subject, 'message' => $this->text, 'enableSmilies' => $this->enableSmilies, 'enableHtml' => $this->enableHtml, 'enableBBCodes' => $this->enableBBCodes))); $this->objectAction->executeAction(); // update news entry $sql = "UPDATE\tcms" . WCF_N . "_news_entry\n SET\tentryUpdates = entryUpdates + 1\n \tWHERE\tentryID = ?"; $statement = WCF::getDB()->prepareStatement($sql); $statement->execute(array($this->entryID)); // set news as new if ($this->setEntryAsNew) { $sql = "UPDATE\tcms" . WCF_N . "_news_entry\n SET\ttime = ?\n\t \t \t\tWHERE\tentryID = ?"; $statement = WCF::getDB()->prepareStatement($sql); $statement->execute(array(TIME_NOW, $this->entryID)); $sql = "DELETE FROM\twcf" . WCF_N . "_tracked_visit\n\t\t WHERE\t\tobjectTypeID = ?\n\t\t AND\t\tobjectID = ?"; $statement = WCF::getDB()->prepareStatement($sql); $statement->execute(array(VisitTracker::getInstance()->getObjectTypeID('de.incendium.cms.news.entry'), $this->entryID)); // reset the user storage data UserStorageHandler::getInstance()->resetAll('cmsUnreadNewsEntries'); } // quotes MessageQuoteManager::getInstance()->saved(); // redirect to news entry HeaderUtil::redirect(LinkHandler::getInstance()->getLink('NewsEntry', array('application' => 'cms', 'object' => $this->entry))); exit; }