From 2663314cc092cd41bb6586aef6f7e4e7c9ddc758 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Thu, 7 Jul 2016 17:45:28 +0200 Subject: [PATCH] Added missing code documentation --- .../files/lib/data/article/ViewableArticleList.class.php | 5 +++++ .../article/content/ViewableArticleContentList.class.php | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/data/article/ViewableArticleList.class.php b/wcfsetup/install/files/lib/data/article/ViewableArticleList.class.php index 5f576ec12e..aa303c6413 100644 --- a/wcfsetup/install/files/lib/data/article/ViewableArticleList.class.php +++ b/wcfsetup/install/files/lib/data/article/ViewableArticleList.class.php @@ -13,6 +13,11 @@ use wcf\system\WCF; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Article * @since 3.0 + * + * @method ViewableArticle current() + * @method ViewableArticle[] getObjects() + * @method ViewableArticle|null search($objectID) + * @property ViewableArticle[] $objects */ class ViewableArticleList extends ArticleList { /** diff --git a/wcfsetup/install/files/lib/data/article/content/ViewableArticleContentList.class.php b/wcfsetup/install/files/lib/data/article/content/ViewableArticleContentList.class.php index 40b56d0806..3e4b742a6c 100644 --- a/wcfsetup/install/files/lib/data/article/content/ViewableArticleContentList.class.php +++ b/wcfsetup/install/files/lib/data/article/content/ViewableArticleContentList.class.php @@ -11,6 +11,11 @@ use wcf\system\message\embedded\object\MessageEmbeddedObjectManager; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Data\Article\Content * @since 3.0 + * + * @method ViewableArticleContent current() + * @method ViewableArticleContent[] getObjects() + * @method ViewableArticleContent|null search($objectID) + * @property ViewableArticleContent[] $objects */ class ViewableArticleContentList extends ArticleContentList { /** @@ -41,7 +46,6 @@ class ViewableArticleContentList extends ArticleContentList { $mediaList->readObjects(); $images = $mediaList->getObjects(); - /** @var ViewableArticleContent $articleContent */ foreach ($this->getObjects() as $articleContent) { if ($articleContent->imageID && isset($images[$articleContent->imageID])) { $articleContent->setImage($images[$articleContent->imageID]); -- 2.20.1