19declare(strict_types=1);
83 public const P_MODE =
'irss_view_mode';
96 $this->
ctrl = $DIC->ctrl();
102 $this->items_per_page = $this->view_configuration->getItemsPerPage();
109 $this->
ctrl->saveParameter($collection_gui, self::P_PAGE);
110 $this->
ctrl->saveParameter($collection_gui, self::P_MODE);
111 $this->
ctrl->saveParameter($collection_gui,
'tsort_f');
112 $this->
ctrl->saveParameter($collection_gui,
'tsort_d');
122 return $this->query->has(self::P_PAGE)
123 ? $this->query->retrieve(self::P_PAGE, $this->
refinery->kindlyTo()->int())
134 return $this->items_per_page;
139 $this->items_per_page = $items_per_page;
144 return $this->view_configuration->getTitle();
149 return $this->view_configuration->getDescription();
154 return $this->query->has(self::P_SORTATION)
155 ? $this->query->retrieve(self::P_SORTATION, $this->
refinery->kindlyTo()->string())
156 : self::BY_TITLE_ASC;
166 return $this->view_configuration->getCollection();
171 return $this->query->has(self::P_MODE)
172 ?
Mode::from($this->query->retrieve(self::P_MODE, $this->refinery->kindlyTo()->int()))
173 : $this->view_configuration->getMode();
188 return $this->sortation;
193 return $this->view_configuration->canUserUpload();
198 return $this->view_configuration->canUserAdministrate();
Class ArrayBasedRequestWrapper.
Class ResourceCollection.
const BY_CREATION_DATE_ASC
const MODE_AS_PRESENTATION_TABLE
init(\ilResourceCollectionGUI $collection_gui)
const BY_CREATION_DATE_DESC
setItemsPerPage(int $items_per_page)
setSortation(string $sortation)
__construct(private \ilCtrlInterface $ctrl, private ArrayBasedRequestWrapper $query, private Configuration $view_configuration,)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...