19 declare(strict_types=1);
120 $irss = $DIC->resourceStorage();
121 $this->
ctrl = $DIC->ctrl();
128 $this->items_per_page = $this->view_configuration->getItemsPerPage();
131 $view_configuration->
getContainer()->getIdentification(),
139 $this->
ctrl->saveParameter($container_resource_gui, self::P_SORTATION);
140 $this->
ctrl->saveParameter($container_resource_gui, self::P_PAGE);
141 $this->
ctrl->saveParameter($container_resource_gui, self::P_MODE);
142 $this->
ctrl->saveParameter($container_resource_gui, self::P_PATH);
156 return $this->query->has(self::P_PAGE)
157 ? $this->query->retrieve(self::P_PAGE, $this->
refinery->kindlyTo()->int())
163 return $this->query->has(self::P_PATH)
164 ? $this->unhash($this->query->retrieve(self::P_PATH, $this->refinery->kindlyTo()->string()))
190 return $this->view_configuration->getTitle();
195 return $this->view_configuration->getDescription();
200 return $this->query->has(self::P_SORTATION)
201 ? $this->query->retrieve(self::P_SORTATION, $this->
refinery->kindlyTo()->string())
202 : self::BY_TITLE_ASC;
217 return $this->query->has(self::P_MODE)
218 ?
Mode::from($this->query->retrieve(self::P_MODE, $this->refinery->kindlyTo()->int()))
219 : $this->view_configuration->getMode();
239 return $this->view_configuration->canUserUpload();
244 return $this->view_configuration->canUserAdministrate();
const MODE_AS_PRESENTATION_TABLE
const BY_CREATION_DATE_ASC
ILIAS Refinery Factory $refinery
__construct(private \ilCtrlInterface $ctrl, private ArrayBasedRequestWrapper $query, private Configuration $view_configuration,)
This is how the factory for UI elements looks.
ContainerWrapper $wrapper
const BY_CREATION_DATE_DESC
init(\ilContainerResourceGUI $container_resource_gui)
setItemsPerPage(int $items_per_page)
setSortation(string $sortation)
sortation()
expected output: > ILIAS shows the rendered Component.
Class ArrayBasedRequestWrapper.