summaryrefslogtreecommitdiffstats
path: root/lib/Service
diff options
context:
space:
mode:
authorMarco Nassabain <marco.nassabain@hotmail.com>2021-02-24 23:33:36 +0100
committerSean Molenaar <SMillerDev@users.noreply.github.com>2021-04-08 22:31:21 +0200
commit08982fc54088677cf4e9c5a0340a90e6eb406319 (patch)
tree0e19bda74681f2847162818c2a794a2215de55b1 /lib/Service
parent0f6ec7c99ca43da46766ca6126ae20d280e9b662 (diff)
✨ Add findAllSharedAfter
- adapted Controller, Service and Mapper (newItems) Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
Diffstat (limited to 'lib/Service')
-rw-r--r--lib/Service/ItemServiceV2.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/Service/ItemServiceV2.php b/lib/Service/ItemServiceV2.php
index 10463b13a..1f5acc070 100644
--- a/lib/Service/ItemServiceV2.php
+++ b/lib/Service/ItemServiceV2.php
@@ -296,6 +296,19 @@ class ItemServiceV2 extends Service
}
/**
+ * Returns all new shared items
+ * @param string $userId the name of the user
+ * @param int $updatedSince a timestamp with the minimal modification date
+ * @param boolean $hideRead if unread items should also be returned
+ *
+ * @return array of items
+ */
+ public function findAllSharedAfter(string $userId, int $updatedSince, bool $hideRead): array
+ {
+ return $this->mapper->findAllSharedAfter($userId, $updatedSince, $hideRead);
+ }
+
+ /**
* Returns all new items of a type
*
* @param string $userId the name of the user