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 WoltLabSuite\Core\System\User\Notification\Object\Type
16 class UserProfileCommentUserNotificationObjectType extends AbstractUserNotificationObjectType implements ICommentUserNotificationObjectType {
20 protected static $decoratorClassName = CommentUserNotificationObject::class;
25 protected static $objectClassName = Comment::class;
30 protected static $objectListClassName = CommentList::class;
35 public function getOwnerID($objectID) {
36 $sql = "SELECT objectID
37 FROM wcf".WCF_N."_comment
39 $statement = WCF::getDB()->prepareStatement($sql);
40 $statement->execute([$objectID]);
41 $row = $statement->fetchArray();
43 return ($row ? $row['objectID'] : 0);