3 namespace wcf\system\user\notification\object\type;
5 use wcf\data\comment\Comment;
6 use wcf\data\comment\CommentList;
7 use wcf\system\user\notification\object\CommentUserNotificationObject;
11 * Represents a comment notification object type.
13 * @author Alexander Ebert
14 * @copyright 2001-2019 WoltLab GmbH
15 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
17 class UserProfileCommentUserNotificationObjectType extends AbstractUserNotificationObjectType implements
18 ICommentUserNotificationObjectType
23 protected static $decoratorClassName = CommentUserNotificationObject::class;
28 protected static $objectClassName = Comment::class;
33 protected static $objectListClassName = CommentList::class;
38 public function getOwnerID($objectID)
40 $sql = "SELECT objectID
41 FROM wcf" . WCF_N . "_comment
43 $statement = WCF::getDB()->prepareStatement($sql);
44 $statement->execute([$objectID]);
45 $row = $statement->fetchArray();
47 return $row ? $row['objectID'] : 0;