Fix CodeSniffing errors
[GitHub/WoltLab/com.woltlab.wcf.conversation.git] / files / lib / system / user / notification / object / ConversationUserNotificationObject.class.php
1 <?php
2 namespace wcf\system\user\notification\object;
3 use wcf\data\DatabaseObjectDecorator;
4 use wcf\system\request\LinkHandler;
5
6 /**
7 * Notification object for conversations.
8 *
9 * @author Marcel Werk
10 * @copyright 2001-2012 WoltLab GmbH
11 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
12 * @package com.woltlab.wcf.conversation
13 * @subpackage system.user.notification.object
14 * @category Community Framework
15 */
16 class ConversationUserNotificationObject extends DatabaseObjectDecorator implements IUserNotificationObject {
17 /**
18 * @see wcf\data\DatabaseObjectDecorator::$baseClass
19 */
20 protected static $baseClass = 'wcf\data\conversation\Conversation';
21
22 /**
23 * @see wcf\system\user\notification\object\IUserNotificationObject::getObjectID()
24 */
25 public function getObjectID() {
26 return $this->conversationID;
27 }
28
29 /**
30 * @see wcf\system\user\notification\object\IUserNotificationObject::getTitle()
31 */
32 public function getTitle() {
33 return $this->subject;
34 }
35
36 /**
37 * @see wcf\system\user\notification\object\IUserNotificationObject::getURL()
38 */
39 public function getURL() {
40 return LinkHandler::getInstance()->getLink('Conversation', array(
41 'object' => $this->getDecoratedObject()
42 ));
43 }
44
45 /**
46 * @see wcf\system\user\notification\object\IUserNotificationObject::getAuthorID()
47 */
48 public function getAuthorID() {
49 return $this->userID;
50 }
51 }