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