19 declare(strict_types=1);
38 $this->irss = $DIC->resourceStorage();
43 return $this->view_request;
51 $collection = $this->view_request->getCollection();
53 $sorter = $this->irss->collection()->sort($collection);
55 switch ($this->view_request->getSortation()) {
57 $collection = $sorter->asc()->byTitle();
60 $collection = $sorter->desc()->byTitle();
63 $collection = $sorter->asc()->byCreationDate();
66 $collection = $sorter->desc()->byCreationDate();
69 $collection = $sorter->asc()->bySize();
72 $collection = $sorter->desc()->bySize();
76 return $this->irss->collection()->rangeAsArray(
78 $this->view_request->getPage() * $this->view_request->getItemsPerPage(),
79 $this->view_request->getItemsPerPage(),
85 return $this->view_request->getCollection()->count();
__construct(private Request $view_request,)
const BY_CREATION_DATE_ASC
const BY_CREATION_DATE_DESC
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...