mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-10-31 14:10:08 +00:00
Resolve some TODOs
This commit is contained in:
parent
763d04fb51
commit
5a1eabcad7
@ -2,10 +2,10 @@
|
|||||||
namespace chat\system\user\notification\event;
|
namespace chat\system\user\notification\event;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* Notification event for invites.
|
||||||
*
|
*
|
||||||
* @author Tim Düsterhus
|
* @author Tim Düsterhus
|
||||||
* @copyright 2010-2014 Tim Düsterhus
|
* @copyright 2010-2015 Tim Düsterhus
|
||||||
* @license Creative Commons Attribution-NonCommercial-ShareAlike <http://creativecommons.org/licenses/by-nc-sa/3.0/legalcode>
|
* @license Creative Commons Attribution-NonCommercial-ShareAlike <http://creativecommons.org/licenses/by-nc-sa/3.0/legalcode>
|
||||||
* @package be.bastelstu.chat
|
* @package be.bastelstu.chat
|
||||||
* @subpackage system.user.notification.event
|
* @subpackage system.user.notification.event
|
||||||
@ -27,7 +27,8 @@ public function getAuthorID() {
|
|||||||
* @see \wcf\system\user\notification\event\IUserNotificationEvent::getAuthor()
|
* @see \wcf\system\user\notification\event\IUserNotificationEvent::getAuthor()
|
||||||
*/
|
*/
|
||||||
public function getAuthor() {
|
public function getAuthor() {
|
||||||
// TODO: caching
|
// TODO: Change to AbstractSharedUserNotificationEvent w/ Tims Chat 4
|
||||||
|
|
||||||
return new \wcf\data\user\UserProfile(new \wcf\data\user\User($this->additionalData['userID']));
|
return new \wcf\data\user\UserProfile(new \wcf\data\user\User($this->additionalData['userID']));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -69,7 +70,6 @@ public function supportsEmailNotification() {
|
|||||||
* @see \wcf\system\user\notification\event\IUserNotificationEvent::checkAccess()
|
* @see \wcf\system\user\notification\event\IUserNotificationEvent::checkAccess()
|
||||||
*/
|
*/
|
||||||
public function checkAccess() {
|
public function checkAccess() {
|
||||||
// TODO
|
return $this->userNotificationObject->getDecoratedObject();
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,10 +2,10 @@
|
|||||||
namespace chat\system\user\notification\object;
|
namespace chat\system\user\notification\object;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* User notification object for chat rooms.
|
||||||
*
|
*
|
||||||
* @author Tim Düsterhus
|
* @author Tim Düsterhus
|
||||||
* @copyright 2010-2014 Tim Düsterhus
|
* @copyright 2010-2015 Tim Düsterhus
|
||||||
* @license Creative Commons Attribution-NonCommercial-ShareAlike <http://creativecommons.org/licenses/by-nc-sa/3.0/legalcode>
|
* @license Creative Commons Attribution-NonCommercial-ShareAlike <http://creativecommons.org/licenses/by-nc-sa/3.0/legalcode>
|
||||||
* @package be.bastelstu.chat
|
* @package be.bastelstu.chat
|
||||||
* @subpackage system.user.notification.object
|
* @subpackage system.user.notification.object
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
namespace chat\system\user\notification\object\type;
|
namespace chat\system\user\notification\object\type;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* Chat room user notification object type.
|
||||||
*
|
*
|
||||||
* @author Tim Düsterhus
|
* @author Tim Düsterhus
|
||||||
* @copyright 2010-2014 Tim Düsterhus
|
* @copyright 2010-2014 Tim Düsterhus
|
||||||
|
Loading…
Reference in New Issue
Block a user