2 namespace wcf\system\user\notification\event;
3 use wcf\system\request\LinkHandler;
4 use wcf\system\user\notification\event\AbstractUserNotificationEvent;
5 use wcf\util\StringUtil;
8 * Notification event for followers.
10 * @author Alexander Ebert
11 * @copyright 2001-2013 WoltLab GmbH
12 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
13 * @package com.woltlab.wcf.user
14 * @subpackage system.user.notification.event
15 * @category Community Framework
17 class UserFollowFollowingUserNotificationEvent extends AbstractUserNotificationEvent {
19 * @see wcf\system\user\notification\event\IUserNotificationEvent::getTitle()
21 public function getTitle() {
22 return $this->getLanguage()->get('wcf.user.notification.follow.title');
26 * @see wcf\system\user\notification\event\IUserNotificationEvent::getMessage()
28 public function getMessage() {
29 return $this->getLanguage()->getDynamicVariable('wcf.user.notification.follow.message', array('author' => $this->author));
33 * @see wcf\system\user\notification\event\IUserNotificationEvent::getEmailMessage()
35 public function getEmailMessage() {
36 return $this->getLanguage()->getDynamicVariable('wcf.user.notification.follow.mail', array('author' => $this->author));
40 * @see wcf\system\user\notification\event\IUserNotificationEvent::getEventHash()
42 public function getEventHash() {
43 return StringUtil::getHash($this->packageID . '-'. $this->eventID . '-' . $this->author->userID);
47 * @see wcf\system\user\notification\event\IUserNotificationEvent::getLink()
49 public function getLink() {
50 return LinkHandler::getInstance()->getLink('User', array('object' => $this->author));