2 namespace wcf\system\user\notification\event;
3 use wcf\data\user\User;
4 use wcf\system\request\LinkHandler;
5 use wcf\system\user\notification\event\AbstractUserNotificationEvent;
9 * User notification event for profile commments.
11 * @author Alexander Ebert
12 * @copyright 2001-2013 WoltLab GmbH
13 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
14 * @package com.woltlab.wcf.comment
15 * @subpackage system.user.notification.event
16 * @category Community Framework
18 class UserProfileCommentUserNotificationEvent extends AbstractUserNotificationEvent {
20 * @see wcf\system\user\notification\event\IUserNotificationEvent::getTitle()
22 public function getTitle() {
23 return $this->getLanguage()->get('wcf.user.notification.comment.title');
27 * @see wcf\system\user\notification\event\IUserNotificationEvent::getMessage()
29 public function getMessage() {
30 return $this->getLanguage()->getDynamicVariable('wcf.user.notification.comment.message', array(
31 'author' => $this->author
36 * @see wcf\system\user\notification\event\IUserNotificationEvent::getEmailMessage()
38 public function getEmailMessage() {
39 $user = new User($this->userNotificationObject->objectID);
41 return $this->getLanguage()->getDynamicVariable('wcf.user.notification.comment.mail', array(
42 'author' => $this->author,
48 * @see wcf\system\user\notification\event\IUserNotificationEvent::getLink()
50 public function getLink() {
51 return LinkHandler::getInstance()->getLink('User', array('object' => WCF::getUser()), '#wall');