From 0e118230f6e57498ffe408501e904fa05496cd52 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Wed, 23 Sep 2015 19:14:15 +0200 Subject: fix test --- controller/itemapicontroller.php | 4 ++-- controller/itemcontroller.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'controller') 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 +} -- cgit v1.2.3