diff options
author | Sean Molenaar <sean@seanmolenaar.eu> | 2020-09-29 13:54:17 +0200 |
---|---|---|
committer | Benjamin Brahmer <info@b-brahmer.de> | 2020-09-29 14:56:07 +0200 |
commit | 35b53ecd404a74edea3c6866e451c4819bdc9ea8 (patch) | |
tree | dac46834d8fa7ec0122243f94604c3d2215b4d22 /lib/Controller/ItemController.php | |
parent | d6d169be15913404f99b86c39a03bc71942c9f77 (diff) |
OPML export command and fixes
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
Diffstat (limited to 'lib/Controller/ItemController.php')
-rw-r--r-- | lib/Controller/ItemController.php | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/Controller/ItemController.php b/lib/Controller/ItemController.php index 95a13ee21..37d34e8ca 100644 --- a/lib/Controller/ItemController.php +++ b/lib/Controller/ItemController.php @@ -61,13 +61,13 @@ class ItemController extends Controller * @return array */ public function index( - $type = 3, - $id = 0, - $limit = 50, - $offset = 0, - $showAll = null, - $oldestFirst = null, - $search = '' + int $type = 3, + int $id = 0, + int $limit = 50, + int $offset = 0, + ?bool $showAll = null, + ?bool $oldestFirst = null, + string $search = '' ) { // in case this is called directly and not from the website use the @@ -119,12 +119,12 @@ class ItemController extends Controller if ($offset === 0) { $params['newestItemId'] = $this->itemService->getNewestItemId($this->userId); - $params['feeds'] = $this->feedService->findAll($this->userId); + $params['feeds'] = $this->feedService->findAllForUser($this->userId); $params['starred'] = $this->itemService->starredCount($this->userId); } - $params['items'] = $this->itemService->findAll( + $params['items'] = $this->itemService->findAllItems( $id, $type, $limit, @@ -165,7 +165,7 @@ class ItemController extends Controller try { $params['newestItemId'] = $this->itemService->getNewestItemId($this->userId); - $params['feeds'] = $this->feedService->findAll($this->userId); + $params['feeds'] = $this->feedService->findAllForUser($this->userId); $params['starred'] = $this->itemService->starredCount($this->userId); $params['items'] = $this->itemService->findAllNew( @@ -238,7 +238,7 @@ class ItemController extends Controller public function readAll($highestItemId) { $this->itemService->readAll($highestItemId, $this->userId); - return ['feeds' => $this->feedService->findAll($this->userId)]; + return ['feeds' => $this->feedService->findAllForUser($this->userId)]; } |