19 declare(strict_types=1);
46 $this->
language->loadLanguageModule(
'irss');
47 $this->ui_factory = $DIC->ui()->factory();
48 match ($view_definition->
getMode()) {
62 $item = $revision_to_component->getAsItem(
false);
64 }, array_reverse($this->resource->getAllRevisionsIncludingDraft()));
75 $card = $revision_to_component->getAsCard();
78 array_reverse($this->resource->getAllRevisionsIncludingDraft())
80 )->withSmallCardsSize();
86 $this->
components[] = $this->ui_factory->table()->presentation(
89 $this->getRowMapping()
91 array_reverse($this->resource->getAllRevisionsIncludingDraft())
95 public function getRowMapping(): \Closure
104 $row = $revision_to_component->getAsRowMapping()($row, $revision->getIdentification());
106 $title = $row->getHeadline();
__construct(private ViewDefinition $view_definition, protected StorableResource $resource,)
Interface StorageResource.
This is how the factory for UI elements looks.
Common interface to all items.
withHeadline(string $headline)
Get a row like this with the given headline.
This describes a Row used in Presentation Table.
language()
description: > Example for rendring a language glyph.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
prependRevisionNumberToTitle(Revision $revision, ?string $title)