19 declare(strict_types=1);
99 $this->
ctrl = $DIC->ctrl();
105 $this->items_per_page = $this->view_configuration->getItemsPerPage();
111 $this->
ctrl->saveParameter($collection_gui, self::P_SORTATION);
112 $this->
ctrl->saveParameter($collection_gui, self::P_PAGE);
113 $this->
ctrl->saveParameter($collection_gui, self::P_MODE);
114 $this->
ctrl->saveParameter($collection_gui,
'tsort_f');
115 $this->
ctrl->saveParameter($collection_gui,
'tsort_d');
125 return $this->query->has(self::P_PAGE)
126 ? $this->query->retrieve(self::P_PAGE, $this->
refinery->kindlyTo()->int())
147 return $this->view_configuration->getTitle();
152 return $this->view_configuration->getDescription();
157 return $this->query->has(self::P_SORTATION)
158 ? $this->query->retrieve(self::P_SORTATION, $this->
refinery->kindlyTo()->string())
159 : self::BY_TITLE_ASC;
169 return $this->view_configuration->getCollection();
174 return $this->query->has(self::P_MODE)
175 ?
Mode::from($this->query->retrieve(self::P_MODE, $this->refinery->kindlyTo()->int()))
176 : $this->view_configuration->getMode();
196 return $this->view_configuration->canUserUpload();
201 return $this->view_configuration->canUserAdministrate();
init(\ilResourceCollectionGUI $collection_gui)
Class ResourceCollection.
const BY_CREATION_DATE_ASC
const BY_CREATION_DATE_DESC
ILIAS Refinery Factory $refinery
This is how the factory for UI elements looks.
__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.