19 declare(strict_types=1);
44 public const P_MODE =
'irss_view_mode';
57 $this->
ctrl = $DIC->ctrl();
63 $this->items_per_page = $this->view_configuration->getItemsPerPage();
69 $this->
ctrl->saveParameter($collection_gui, self::P_SORTATION);
70 $this->
ctrl->saveParameter($collection_gui, self::P_PAGE);
71 $this->
ctrl->saveParameter($collection_gui, self::P_MODE);
72 $this->
ctrl->saveParameter($collection_gui,
'tsort_f');
73 $this->
ctrl->saveParameter($collection_gui,
'tsort_d');
83 return $this->query->has(self::P_PAGE)
84 ? $this->query->retrieve(self::P_PAGE, $this->
refinery->kindlyTo()->int())
105 return $this->view_configuration->getTitle();
110 return $this->view_configuration->getDescription();
115 return $this->query->has(self::P_SORTATION)
116 ? $this->query->retrieve(self::P_SORTATION, $this->
refinery->kindlyTo()->string())
117 : self::BY_TITLE_ASC;
127 return $this->view_configuration->getCollection();
132 return $this->query->has(self::P_MODE)
133 ?
Mode::from($this->query->retrieve(self::P_MODE, $this->refinery->kindlyTo()->int()))
134 : $this->view_configuration->getMode();
154 return $this->view_configuration->canUserUpload();
159 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.