Non-activated users should not be able to use conversations by default
[GitHub/WoltLab/com.woltlab.wcf.conversation.git] / files / lib / system / cache / runtime / UserConversationRuntimeCache.class.php
CommitLineData
95dea717 1<?php
fea86294 2
95dea717 3namespace wcf\system\cache\runtime;
fea86294 4
95dea717
MS
5use wcf\data\conversation\Conversation;
6use wcf\data\conversation\UserConversationList;
7use wcf\system\WCF;
8
9/**
10 * Runtime cache implementation for conversation fetched using UserConversationList.
11 *
fea86294
TD
12 * @author Matthias Schmidt
13 * @copyright 2001-2019 WoltLab GmbH
14 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
fea86294
TD
15 * @since 3.0
16 *
17 * @method Conversation[] getCachedObjects()
18 * @method Conversation getObject($objectID)
19 * @method Conversation[] getObjects(array $objectIDs)
95dea717 20 */
fea86294
TD
21class UserConversationRuntimeCache extends AbstractRuntimeCache
22{
23 /**
24 * @inheritDoc
25 */
26 protected $listClassName = UserConversationList::class;
27
fea86294
TD
28 /**
29 * @inheritDoc
30 */
31 protected function getObjectList()
32 {
33 return new UserConversationList(WCF::getUser()->userID);
34 }
95dea717 35}