19 declare(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();
108 $this->
ctrl->saveParameter($collection_gui, self::P_SORTATION);
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())
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();
193 return $this->view_configuration->canUserUpload();
198 return $this->view_configuration->canUserAdministrate();
init(\ilResourceCollectionGUI $collection_gui)
Class ResourceCollection.
const BY_CREATION_DATE_ASC
const BY_CREATION_DATE_DESC
__construct(private \ilCtrlInterface $ctrl, private ArrayBasedRequestWrapper $query, private Configuration $view_configuration,)
const MODE_AS_PRESENTATION_TABLE
setItemsPerPage(int $items_per_page)
setSortation(string $sortation)
sortation()
expected output: > ILIAS shows the rendered Component.
Class ArrayBasedRequestWrapper.