2 namespace wcf\system\user\notification\object\type;
3 use wcf\data\comment\Comment;
4 use wcf\data\comment\CommentList;
5 use wcf\system\user\notification\object\CommentUserNotificationObject;
9 * Represents a comment notification object type.
11 * @author Alexander Ebert
12 * @copyright 2001-2016 WoltLab GmbH
13 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
14 * @package com.woltlab.wcf
15 * @subpackage system.user.notification.object.type
16 * @category Community Framework
18 class UserProfileCommentUserNotificationObjectType extends AbstractUserNotificationObjectType implements ICommentUserNotificationObjectType {
22 protected static $decoratorClassName = CommentUserNotificationObject::class;
27 protected static $objectClassName = Comment::class;
32 protected static $objectListClassName = CommentList::class;
37 public function getOwnerID($objectID) {
38 $sql = "SELECT objectID
39 FROM wcf".WCF_N."_comment
41 $statement = WCF::getDB()->prepareStatement($sql);
42 $statement->execute([$objectID]);
43 $row = $statement->fetchArray();
45 return ($row ? $row['objectID'] : 0);