Add ViewableArticleContentRuntimeCache
authorJoshua Rüsweg <ruesweg@woltlab.com>
Fri, 27 Dec 2019 14:27:28 +0000 (15:27 +0100)
committerJoshua Rüsweg <ruesweg@woltlab.com>
Fri, 27 Dec 2019 14:27:28 +0000 (15:27 +0100)
wcfsetup/install/files/lib/system/cache/runtime/ViewableArticleContentRuntimeCache.class.php [new file with mode: 0644]

diff --git a/wcfsetup/install/files/lib/system/cache/runtime/ViewableArticleContentRuntimeCache.class.php b/wcfsetup/install/files/lib/system/cache/runtime/ViewableArticleContentRuntimeCache.class.php
new file mode 100644 (file)
index 0000000..46c90d9
--- /dev/null
@@ -0,0 +1,24 @@
+<?php
+namespace wcf\system\cache\runtime;
+use wcf\data\article\content\ViewableArticleContent;
+use wcf\data\article\content\ViewableArticleContentList;
+
+/**
+ * Runtime cache implementation for viewable article contents.
+ *
+ * @author     Joshua Ruesweg
+ * @copyright  2001-2019 WoltLab GmbH
+ * @license    GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
+ * @package    WoltLabSuite\Core\System\Cache\Runtime
+ * @since      5.2
+ *
+ * @method     ViewableArticleContent[]                getCachedObjects()
+ * @method     ViewableArticleContent                  getObject($objectID)
+ * @method     ViewableArticleContent[]                getObjects(array $objectIDs)
+ */
+class ViewableArticleContentRuntimeCache extends AbstractRuntimeCache {
+       /**
+        * @inheritDoc
+        */
+       protected $listClassName = ViewableArticleContentList::class;
+}