diff options
-rw-r--r-- | lib/itemmapper.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/itemmapper.php b/lib/itemmapper.php index 03dc1c764..661e3cf7a 100644 --- a/lib/itemmapper.php +++ b/lib/itemmapper.php @@ -87,8 +87,7 @@ class ItemMapper { } /* - * @brief Retrieve all the items corresponding to a feed from the database with a particular status - * @param feedid The id of the feed in the database table. + * @brief Retrieve all the items from the database with a particular status * @param status one of the constants defined in OCA\News\StatusFlag */ public function findEveryItemByStatus($status){ @@ -117,6 +116,10 @@ class ItemMapper { return $result['size']; } + /** + * @brief Count all the items from the database with a particular status + * @param status one of the constants defined in OCA\News\StatusFlag + */ public function countEveryItemByStatus($status){ $stmt = \OCP\DB::prepare('SELECT COUNT(*) as size FROM ' . self::tableName . ' JOIN '. FeedMapper::tableName .' ON |