diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-09-23 19:14:15 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-09-23 19:14:53 +0200 |
commit | 0e118230f6e57498ffe408501e904fa05496cd52 (patch) | |
tree | c2edc528663526f6a8fc0a01efb7f4a2cf997604 /controller | |
parent | 0739ad702750b880ef804050b21467ec3f5ef24f (diff) |
fix test
Diffstat (limited to 'controller')
-rw-r--r-- | controller/itemapicontroller.php | 4 | ||||
-rw-r--r-- | controller/itemcontroller.php | 4 |
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 +} |