<type>
<name>com.woltlab.wcf.user.profileComment.like.notification</name>
<definitionname>com.woltlab.wcf.notification.objectType</definitionname>
- <classname><![CDATA[wcf\system\user\notification\object\type\UserProfileCommentLikeUserNotificationObjectType]]></classname>
+ <classname><![CDATA[wcf\system\user\notification\object\type\LikeUserNotificationObjectType]]></classname>
<category>com.woltlab.wcf.user</category>
</type>
<type>
<name>com.woltlab.wcf.user.profileComment.response.like.notification</name>
<definitionname>com.woltlab.wcf.notification.objectType</definitionname>
- <classname><![CDATA[wcf\system\user\notification\object\type\UserProfileCommentResponseLikeUserNotificationObjectType]]></classname>
+ <classname><![CDATA[wcf\system\user\notification\object\type\LikeUserNotificationObjectType]]></classname>
<category>com.woltlab.wcf.user</category>
</type>
use wcf\data\like\Like;
use wcf\data\object\type\ObjectTypeCache;
use wcf\system\comment\CommentHandler;
-use wcf\system\user\notification\object\CommentLikeUserNotificationObject;
+use wcf\system\user\notification\object\LikeUserNotificationObject;
use wcf\system\user\notification\UserNotificationHandler;
use wcf\system\WCF;
if (UserNotificationHandler::getInstance()->getObjectTypeID($objectType->objectType.'.like.notification')) {
$notificationObjectType = UserNotificationHandler::getInstance()->getObjectTypeProcessor($objectType->objectType.'.like.notification');
if ($this->userID != WCF::getUser()->userID) {
- $notificationObject = new CommentLikeUserNotificationObject($like);
+ $notificationObject = new LikeUserNotificationObject($like);
UserNotificationHandler::getInstance()->fireEvent('like', $objectType->objectType.'.like.notification', $notificationObject, array($this->userID), array(
'objectID' => $this->object->objectID,
'objectOwnerID' => $this->userID
use wcf\data\like\Like;
use wcf\data\object\type\ObjectTypeCache;
use wcf\system\comment\CommentHandler;
-use wcf\system\user\notification\object\CommentResponseLikeUserNotificationObject;
+use wcf\system\user\notification\object\LikeUserNotificationObject;
use wcf\system\user\notification\UserNotificationHandler;
use wcf\system\WCF;
if (UserNotificationHandler::getInstance()->getObjectTypeID($objectType->objectType.'.response.like.notification')) {
$notificationObjectType = UserNotificationHandler::getInstance()->getObjectTypeProcessor($objectType->objectType.'.response.like.notification');
if ($this->userID != WCF::getUser()->userID) {
- $notificationObject = new CommentResponseLikeUserNotificationObject($like);
+ $notificationObject = new LikeUserNotificationObject($like);
UserNotificationHandler::getInstance()->fireEvent('like', $objectType->objectType.'.response.like.notification', $notificationObject, array($this->userID), array(
'commentID' => $comment->commentID,
'commentUserID' => $comment->userID,
+++ /dev/null
-<?php
-namespace wcf\system\user\notification\object;
-use wcf\data\DatabaseObjectDecorator;
-
-/**
- * Notification object for comment likes.
- *
- * @author Alexander Ebert
- * @copyright 2001-2014 WoltLab GmbH
- * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
- * @package com.woltlab.wcf
- * @subpackage system.user.notification.object
- * @category Community Framework
- */
-class CommentLikeUserNotificationObject extends DatabaseObjectDecorator implements IUserNotificationObject {
- /**
- * @see \wcf\data\DatabaseObjectDecorator::$baseClass
- */
- protected static $baseClass = 'wcf\data\like\Like';
-
- /**
- * @see \wcf\system\user\notification\object\IUserNotificationObject::getTitle()
- */
- public function getTitle() {
- return '';
- }
-
- /**
- * @see \wcf\system\user\notification\object\IUserNotificationObject::getURL()
- */
- public function getURL() {
- return '';
- }
-
- /**
- * @see \wcf\system\user\notification\object\IUserNotificationObject::getAuthorID()
- */
- public function getAuthorID() {
- return $this->userID;
- }
-}
+++ /dev/null
-<?php
-namespace wcf\system\user\notification\object;
-use wcf\data\DatabaseObjectDecorator;
-
-/**
- * Notification object for comment response likes.
- *
- * @author Alexander Ebert
- * @copyright 2001-2014 WoltLab GmbH
- * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
- * @package com.woltlab.wcf
- * @subpackage system.user.notification.object
- * @category Community Framework
- */
-class CommentResponseLikeUserNotificationObject extends DatabaseObjectDecorator implements IUserNotificationObject {
- /**
- * @see \wcf\data\DatabaseObjectDecorator::$baseClass
- */
- protected static $baseClass = 'wcf\data\like\Like';
-
- /**
- * @see \wcf\system\user\notification\object\IUserNotificationObject::getTitle()
- */
- public function getTitle() {
- return '';
- }
-
- /**
- * @see \wcf\system\user\notification\object\IUserNotificationObject::getURL()
- */
- public function getURL() {
- return '';
- }
-
- /**
- * @see \wcf\system\user\notification\object\IUserNotificationObject::getAuthorID()
- */
- public function getAuthorID() {
- return $this->userID;
- }
-}
--- /dev/null
+<?php
+namespace wcf\system\user\notification\object;
+use wcf\data\DatabaseObjectDecorator;
+
+/**
+ * User notification object implementation for likes.
+ *
+ * @author Alexander Ebert
+ * @copyright 2001-2014 WoltLab GmbH
+ * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
+ * @package com.woltlab.wcf
+ * @subpackage system.user.notification.object
+ * @category Community Framework
+ */
+class LikeUserNotificationObject extends DatabaseObjectDecorator implements IUserNotificationObject {
+ /**
+ * @see \wcf\data\DatabaseObjectDecorator::$baseClass
+ */
+ protected static $baseClass = 'wcf\data\like\Like';
+
+ /**
+ * @see \wcf\system\user\notification\object\IUserNotificationObject::getTitle()
+ */
+ public function getTitle() {
+ return '';
+ }
+
+ /**
+ * @see \wcf\system\user\notification\object\IUserNotificationObject::getURL()
+ */
+ public function getURL() {
+ return '';
+ }
+
+ /**
+ * @see \wcf\system\user\notification\object\IUserNotificationObject::getAuthorID()
+ */
+ public function getAuthorID() {
+ return $this->userID;
+ }
+}
--- /dev/null
+<?php
+namespace wcf\system\user\notification\object\type;
+use wcf\system\WCF;
+
+/**
+ * User notification object type implementation for likes.
+ *
+ * @author Alexander Ebert
+ * @copyright 2001-2014 WoltLab GmbH
+ * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
+ * @package com.woltlab.wcf
+ * @subpackage system.user.notification.object.type
+ * @category Community Framework
+ */
+class LikeUserNotificationObjectType extends AbstractUserNotificationObjectType {
+ /**
+ * @see \wcf\system\user\notification\object\type\AbstractUserNotificationObjectType::$decoratorClassName
+ */
+ protected static $decoratorClassName = 'wcf\system\user\notification\object\LikeUserNotificationObject';
+
+ /**
+ * @see \wcf\system\user\notification\object\type\AbstractUserNotificationObjectType::$objectClassName
+ */
+ protected static $objectClassName = 'wcf\data\like\Like';
+
+ /**
+ * @see \wcf\system\user\notification\object\type\AbstractUserNotificationObjectType::$objectListClassName
+ */
+ protected static $objectListClassName = 'wcf\data\like\LikeList';
+}
+++ /dev/null
-<?php
-namespace wcf\system\user\notification\object\type;
-use wcf\system\WCF;
-
-/**
- * Represents a comment notification object type for likes.
- *
- * @author Alexander Ebert
- * @copyright 2001-2014 WoltLab GmbH
- * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
- * @package com.woltlab.wcf
- * @subpackage system.user.notification.object.type
- * @category Community Framework
- */
-class UserProfileCommentLikeUserNotificationObjectType extends AbstractUserNotificationObjectType implements ICommentUserNotificationObjectType {
- /**
- * @see \wcf\system\user\notification\object\type\AbstractUserNotificationObjectType::$decoratorClassName
- */
- protected static $decoratorClassName = 'wcf\system\user\notification\object\CommentLikeUserNotificationObject';
-
- /**
- * @see \wcf\system\user\notification\object\type\AbstractUserNotificationObjectType::$objectClassName
- */
- protected static $objectClassName = 'wcf\data\like\Like';
-
- /**
- * @see \wcf\system\user\notification\object\type\AbstractUserNotificationObjectType::$objectListClassName
- */
- protected static $objectListClassName = 'wcf\data\like\LikeList';
-
- /**
- * @see \wcf\system\user\notification\object\type\ICommentUserNotificationObjectType::getOwnerID()
- */
- public function getOwnerID($objectID) {
- $sql = "SELECT objectUserID
- FROM wcf".WCF_N."_like
- WHERE likeID = ?";
- $statement = WCF::getDB()->prepareStatement($sql);
- $statement->execute(array($objectID));
- $row = $statement->fetchArray();
-
- return ($row ? $row['objectUserID'] : 0);
- }
-}
+++ /dev/null
-<?php
-namespace wcf\system\user\notification\object\type;
-
-/**
- * Represents a comment response notification object type for likes.
- *
- * @author Alexander Ebert
- * @copyright 2001-2014 WoltLab GmbH
- * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
- * @package com.woltlab.wcf
- * @subpackage system.user.notification.object.type
- * @category Community Framework
- */
-class UserProfileCommentResponseLikeUserNotificationObjectType extends AbstractUserNotificationObjectType {
- /**
- * @see \wcf\system\user\notification\object\type\AbstractUserNotificationObjectType::$decoratorClassName
- */
- protected static $decoratorClassName = 'wcf\system\user\notification\object\CommentResponseUserNotificationObject';
-
- /**
- * @see \wcf\system\user\notification\object\type\AbstractUserNotificationObjectType::$objectClassName
- */
- protected static $objectClassName = 'wcf\data\comment\response\CommentResponse';
-
- /**
- * @see \wcf\system\user\notification\object\type\AbstractUserNotificationObjectType::$objectListClassName
- */
- protected static $objectListClassName = 'wcf\data\comment\response\CommentResponseList';
-}