summaryrefslogtreecommitdiffstats
path: root/controller/itemcontroller.php
diff options
context:
space:
mode:
Diffstat (limited to 'controller/itemcontroller.php')
-rw-r--r--controller/itemcontroller.php18
1 files changed, 17 insertions, 1 deletions
diff --git a/controller/itemcontroller.php b/controller/itemcontroller.php
index 4f3f22c62..30677d9fc 100644
--- a/controller/itemcontroller.php
+++ b/controller/itemcontroller.php
@@ -54,7 +54,7 @@ class ItemController extends Controller {
* @param int $limit
* @param int $offset
*/
- public function index($type, $id, $limit, $offset=0) {
+ public function index($type, $id, $limit=50, $offset=0) {
$showAll = $this->settings->getUserValue($this->userId, $this->appName,
'showAll') === '1';
$oldestFirst = $this->settings->getUserValue($this->userId, $this->appName,
@@ -163,4 +163,20 @@ class ItemController extends Controller {
}
+ /**
+ * @NoAdminRequired
+ *
+ * @param int[] item ids
+ */
+ public function readMultiple($itemIds) {
+ foreach($itemIds as $id) {
+ try {
+ $this->itemService->read($id, true, $this->userId);
+ } catch(ServiceNotFoundException $ex) {
+ continue;
+ }
+ }
+ }
+
+
} \ No newline at end of file