Commit | Line | Data |
---|---|---|
95dea717 | 1 | <?php |
fea86294 | 2 | |
95dea717 | 3 | namespace wcf\system\cache\runtime; |
fea86294 | 4 | |
95dea717 MS |
5 | use wcf\data\conversation\Conversation; |
6 | use wcf\data\conversation\UserConversationList; | |
7 | use 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> | |
15 | * @package WoltLabSuite\Core\System\Cache\Runtime | |
16 | * @since 3.0 | |
17 | * | |
18 | * @method Conversation[] getCachedObjects() | |
19 | * @method Conversation getObject($objectID) | |
20 | * @method Conversation[] getObjects(array $objectIDs) | |
95dea717 | 21 | */ |
fea86294 TD |
22 | class UserConversationRuntimeCache extends AbstractRuntimeCache |
23 | { | |
24 | /** | |
25 | * @inheritDoc | |
26 | */ | |
27 | protected $listClassName = UserConversationList::class; | |
28 | ||
29 | /** @noinspection PhpMissingParentCallCommonInspection */ | |
30 | ||
31 | /** | |
32 | * @inheritDoc | |
33 | */ | |
34 | protected function getObjectList() | |
35 | { | |
36 | return new UserConversationList(WCF::getUser()->userID); | |
37 | } | |
95dea717 | 38 | } |