2 namespace wcf\system\user\notification\object\type;
6 * Represents a comment notification object type.
8 * @author Alexander Ebert
9 * @copyright 2001-2013 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 {
17 * @see \wcf\system\user\notification\object\type\AbstractUserNotificationObjectType::$decoratorClassName
19 protected static $decoratorClassName = 'wcf\system\user\notification\object\CommentUserNotificationObject';
22 * @see \wcf\system\user\notification\object\type\AbstractUserNotificationObjectType::$objectClassName
24 protected static $objectClassName = 'wcf\data\comment\Comment';
27 * @see \wcf\system\user\notification\object\type\AbstractUserNotificationObjectType::$objectListClassName
29 protected static $objectListClassName = 'wcf\data\comment\CommentList';
32 * @see \wcf\system\user\notification\object\type\ICommentUserNotificationObjectType::getOwnerID()
34 public function getOwnerID($objectID) {
35 $sql = "SELECT objectID
36 FROM wcf".WCF_N."_comment
38 $statement = WCF::getDB()->prepareStatement($sql);
39 $statement->execute(array($objectID));
40 $row = $statement->fetchArray();
42 return ($row ? $row['objectID'] : 0);