19 declare(strict_types=1);
47 $this->
language->loadLanguageModule(
'irss');
48 $this->ui_factory = $DIC->ui()->factory();
49 switch ($view_definition->
getMode()) {
71 $item = $revision_to_component->getAsItem(
false);
73 }, array_reverse($this->resource->getAllRevisionsIncludingDraft()));
78 $this->components[] = $this->ui_factory->deck(
84 $card = $revision_to_component->getAsCard();
87 array_reverse($this->resource->getAllRevisionsIncludingDraft())
89 )->withSmallCardsSize();
95 $this->components[] = $this->ui_factory->table()->presentation(
98 $this->getRowMapping()
100 array_reverse($this->resource->getAllRevisionsIncludingDraft())
104 public function getRowMapping(): \Closure
113 $row = $revision_to_component->getAsRowMapping()($row, $revision->getIdentification());
115 $title = $row->getHeadline();
Interface StorageResource.
Class ChatMainBarProvider .
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
prependRevisionNumberToTitle(Revision $revision, ?string $title)
ILIAS UI Factory $ui_factory
withHeadline(string $headline)
Get a row like this with the given headline.
__construct(private ViewDefinition $view_definition, protected StorableResource $resource,)
This describes a Row used in Presentation Table.