19 declare(strict_types=1);
45 $this->current_revision = $this->resource->getCurrentRevision();
47 $this->current_revision,
59 $row = $this->revision_to_component->getAsRowMapping()($row, $resource_identification);
74 $properties = array_merge(
78 return $this->revision_to_component->getAsItem($with_image)
79 ->withProperties($properties);
84 return $this->revision_to_component->getAsCard();
91 $this->revision_to_component->getImportantProperties()
97 $stakeholders = implode(
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.
ActionGenerator $action_generator
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
Class ResourceIdentification.
This describes a Row used in Presentation Table.
Revision $current_revision
getConsumerNameForPresentation()
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.