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()
__construct(protected StorableResource $resource, ?ActionGenerator $action_generator=null)
Interface StorageResource.
Interface Observer Contains several chained tasks and infos about them.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ActionGenerator $action_generator
Class ResourceIdentification.
This describes a Row used in Presentation Table.
getConsumerNameForPresentation()
ILIAS ResourceStorage Revision Revision $current_revision
RevisionToComponent $revision_to_component
withImportantFields(array $fields)
Get a row like this with the record-fields and labels to be shown in the collapsed row...
__construct(Container $dic, ilPlugin $plugin)
getAsItem(bool $with_image)
Interface ResourceStakeholder.
language()
description: > Example for rendring a language glyph.