From c79a5bf931029b082e5b174398f8c7c069531305 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Wed, 9 Jun 2021 15:13:42 +0200 Subject: [PATCH] Add `ViewableComment(Response)RuntimeCache` --- ...wableCommentResponseRuntimeCache.class.php | 27 +++++++++++++++++++ .../ViewableCommentRuntimeCache.class.php | 27 +++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 wcfsetup/install/files/lib/system/cache/runtime/ViewableCommentResponseRuntimeCache.class.php create mode 100644 wcfsetup/install/files/lib/system/cache/runtime/ViewableCommentRuntimeCache.class.php diff --git a/wcfsetup/install/files/lib/system/cache/runtime/ViewableCommentResponseRuntimeCache.class.php b/wcfsetup/install/files/lib/system/cache/runtime/ViewableCommentResponseRuntimeCache.class.php new file mode 100644 index 0000000000..2fcdd4cf5e --- /dev/null +++ b/wcfsetup/install/files/lib/system/cache/runtime/ViewableCommentResponseRuntimeCache.class.php @@ -0,0 +1,27 @@ + + * @package WoltLabSuite\Core\System\Cache\Runtime + * @since 5.5 + * + * @method ViewableCommentResponse[] getCachedObjects() + * @method ViewableCommentResponse getObject($objectID) + * @method ViewableCommentResponse[] getObjects(array $objectIDs) + */ +class ViewableCommentResponseRuntimeCache extends AbstractRuntimeCache +{ + /** + * @inheritDoc + */ + protected $listClassName = ViewableCommentResponseList::class; +} diff --git a/wcfsetup/install/files/lib/system/cache/runtime/ViewableCommentRuntimeCache.class.php b/wcfsetup/install/files/lib/system/cache/runtime/ViewableCommentRuntimeCache.class.php new file mode 100644 index 0000000000..adf975e79c --- /dev/null +++ b/wcfsetup/install/files/lib/system/cache/runtime/ViewableCommentRuntimeCache.class.php @@ -0,0 +1,27 @@ + + * @package WoltLabSuite\Core\System\Cache\Runtime + * @since 5.5 + * + * @method ViewableComment[] getCachedObjects() + * @method ViewableComment getObject($objectID) + * @method ViewableComment[] getObjects(array $objectIDs) + */ +class ViewableCommentRuntimeCache extends AbstractRuntimeCache +{ + /** + * @inheritDoc + */ + protected $listClassName = ViewableCommentList::class; +} -- 2.20.1