2 declare(strict_types=1);
3 namespace wcf\system\user\notification\object\type;
4 use wcf\data\comment\Comment;
5 use wcf\data\comment\CommentList;
6 use wcf\system\user\notification\object\CommentUserNotificationObject;
10 * Represents a comment notification object type.
12 * @author Alexander Ebert
13 * @copyright 2001-2018 WoltLab GmbH
14 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
15 * @package WoltLabSuite\Core\System\User\Notification\Object\Type
17 class UserProfileCommentUserNotificationObjectType extends AbstractUserNotificationObjectType implements ICommentUserNotificationObjectType {
21 protected static $decoratorClassName = CommentUserNotificationObject::class;
26 protected static $objectClassName = Comment::class;
31 protected static $objectListClassName = CommentList::class;
36 public function getOwnerID($objectID) {
37 $sql = "SELECT objectID
38 FROM wcf".WCF_N."_comment
40 $statement = WCF::getDB()->prepareStatement($sql);
41 $statement->execute([$objectID]);
42 $row = $statement->fetchArray();
44 return ($row ? $row['objectID'] : 0);