19 declare(strict_types=1);
34 private \ILIAS\ResourceStorage\Revision\RevisionCollection
$revisions;
64 return $this->revisions->getCurrent();
73 if ($revision->getVersionNumber() === $number) {
86 if ($revision->getVersionNumber() === $number) {
98 return $this->revisions->getAll();
106 $this->revisions->add($revision);
111 $this->revisions->remove($revision);
119 $this->revisions->replaceSingleRevision($revision);
127 $this->revisions = $collection;
143 $this->stakeholders[] = $s;
151 foreach ($this->stakeholders as $k => $stakeholder) {
152 if ($stakeholder->getId() === $s->
getId()) {
153 unset($this->stakeholders[$k]);
189 return $this->revisions->getMax();
addStakeholder(ResourceStakeholder $s)
ResourceIdentification $identification
hasSpecificRevision(int $number)
Interface StorageResource.
addRevision(Revision $revision)
removeRevision(Revision $revision)
setStorageId(string $storage_id)
replaceRevision(Revision $revision)
ILIAS ResourceStorage Revision RevisionCollection $revisions
setStakeholders(array $stakeholders)
Class RevisionCollection.
getSpecificRevision(int $number)
__construct(ResourceIdentification $identification)
StorableFileResource constructor.
Class ResourceIdentification.
Class StorableFileResource.
removeStakeholder(ResourceStakeholder $s)
setRevisions(RevisionCollection $collection)
Interface ResourceStakeholder.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...