19 declare(strict_types=1);
59 private string $path = self::BASE;
64 private \
ILIAS\
HTTP\Wrapper\ArrayBasedRequestWrapper $query,
68 $irss = $DIC->resourceStorage();
69 $this->
ctrl = $DIC->ctrl();
76 $this->items_per_page = $this->view_configuration->getItemsPerPage();
79 $view_configuration->
getContainer()->getIdentification(),
87 $this->
ctrl->saveParameter($container_resource_gui, self::P_SORTATION);
88 $this->
ctrl->saveParameter($container_resource_gui, self::P_PAGE);
89 $this->
ctrl->saveParameter($container_resource_gui, self::P_MODE);
90 $this->
ctrl->saveParameter($container_resource_gui, self::P_PATH);
104 return $this->query->has(self::P_PAGE)
105 ? $this->query->retrieve(self::P_PAGE, $this->
refinery->kindlyTo()->int())
111 return $this->query->has(self::P_PATH)
112 ? $this->unhash($this->query->retrieve(self::P_PATH, $this->refinery->kindlyTo()->string()))
138 return $this->view_configuration->getTitle();
143 return $this->view_configuration->getDescription();
148 return $this->query->has(self::P_SORTATION)
149 ? $this->query->retrieve(self::P_SORTATION, $this->
refinery->kindlyTo()->string())
150 : self::BY_TITLE_ASC;
165 return $this->query->has(self::P_MODE)
166 ?
Mode::from($this->query->retrieve(self::P_MODE, $this->refinery->kindlyTo()->int()))
167 : $this->view_configuration->getMode();
187 return $this->view_configuration->canUserUpload();
192 return $this->view_configuration->canUserAdministrate();
__construct(private \ilCtrlInterface $ctrl, private \ILIAS\HTTP\Wrapper\ArrayBasedRequestWrapper $query, private Configuration $view_configuration,)
Interface Observer Contains several chained tasks and infos about them.
const MODE_AS_PRESENTATION_TABLE
const BY_CREATION_DATE_ASC
ILIAS Refinery Factory $refinery
ILIAS UI Factory $ui_factory
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.