Added missing code documentation
authorMarcel Werk <burntime@woltlab.com>
Thu, 7 Jul 2016 15:45:28 +0000 (17:45 +0200)
committerMarcel Werk <burntime@woltlab.com>
Thu, 7 Jul 2016 15:45:36 +0000 (17:45 +0200)
wcfsetup/install/files/lib/data/article/ViewableArticleList.class.php
wcfsetup/install/files/lib/data/article/content/ViewableArticleContentList.class.php

index 5f576ec12e28795fb6c69bdd27db7b97750344c9..aa303c64136d4781425554cedf80002193740641 100644 (file)
@@ -13,6 +13,11 @@ use wcf\system\WCF;
  * @license    GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
  * @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 {
        /**
index 40b56d08065b62e3ee983754d50be60bc43179ce..3e4b742a6c34817a582656de0cf0d299cfc3f261 100644 (file)
@@ -11,6 +11,11 @@ use wcf\system\message\embedded\object\MessageEmbeddedObjectManager;
  * @license    GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
  * @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]);