diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2012-08-16 20:57:56 +0200 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2012-08-16 20:57:56 +0200 |
commit | 296cad3a05bd9c5693ad936c90ab3ebfc15b7665 (patch) | |
tree | 9ac3b4d25887b0499e7c63bc06015d9f27d3f5fc | |
parent | 45828812cba18a61a9882cf84508cf55b1ba7b1a (diff) |
added javadoc for newly implemented queries
-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 |