summaryrefslogtreecommitdiffstats
path: root/controller
diff options
context:
space:
mode:
Diffstat (limited to 'controller')
-rw-r--r--controller/itemapicontroller.php4
-rw-r--r--controller/itemcontroller.php4
2 files changed, 4 insertions, 4 deletions
diff --git a/controller/itemapicontroller.php b/controller/itemapicontroller.php
index 0fb613c92..06566f804 100644
--- a/controller/itemapicontroller.php
+++ b/controller/itemapicontroller.php
@@ -52,7 +52,7 @@ class ItemApiController extends ApiController {
* @param bool $oldestFirst
* @return array|mixed
*/
- public function index($type, $id, $getRead, $batchSize=20, $offset=0,
+ public function index($type=3, $id=0, $getRead=true, $batchSize=-1, $offset=0,
$oldestFirst=false) {
return $this->serializer->serialize(
$this->itemService->findAll(
@@ -73,7 +73,7 @@ class ItemApiController extends ApiController {
* @param int $lastModified
* @return array|mixed
*/
- public function updated($type, $id, $lastModified=0) {
+ public function updated($type=3, $id=0, $lastModified=0) {
return $this->serializer->serialize(
$this->itemService->findAllNew($id, $type, $lastModified,
true, $this->userId)
diff --git a/controller/itemcontroller.php b/controller/itemcontroller.php
index 7a500a88f..ac838f1bf 100644
--- a/controller/itemcontroller.php
+++ b/controller/itemcontroller.php
@@ -59,7 +59,7 @@ class ItemController extends Controller {
* @param string $search
* @return array
*/
- public function index($type, $id, $limit=50, $offset=0, $showAll=null,
+ public function index($type=3, $id=0, $limit=50, $offset=0, $showAll=null,
$oldestFirst=null, $search='') {
// in case this is called directly and not from the website use the
@@ -215,4 +215,4 @@ class ItemController extends Controller {
}
-} \ No newline at end of file
+}