19 declare(strict_types=1);
43 $this->current_revision = $this->resource->getCurrentRevision();
45 $this->current_revision,
57 $row = $this->revision_to_component->getAsRowMapping()($row, $resource_identification);
72 $properties = array_merge(
76 return $this->revision_to_component->getAsItem($with_image)
77 ->withProperties($properties);
82 return $this->revision_to_component->getAsCard();
89 $this->revision_to_component->getImportantProperties()
95 $stakeholders = implode(
99 }, $this->resource->getStakeholders())
105 $this->
language->txt(
'stakeholders') => $stakeholders,
106 $this->
language->txt(
'full_size') => $this->
formatSize($this->resource->getFullSize()),
108 $this->revision_to_component->getCommonProperties()
116 $this->
language->txt(
'revisions') => (string)count($this->resource->getAllRevisionsIncludingDraft()),
118 $this->revision_to_component->getImportantProperties()
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...
Class ResourceIdentification.
getAsItem(bool $with_image)
ActionGenerator $action_generator
__construct(protected StorableResource $resource, ?ActionGenerator $action_generator=null)
This describes a Row used in Presentation Table.
getConsumerNameForPresentation()
withImportantFields(array $fields)
Get a row like this with the record-fields and labels to be shown in the collapsed row...
RevisionToComponent $revision_to_component
Interface ResourceStakeholder.
ILIAS ResourceStorage Revision Revision $current_revision