ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
CloneRevision.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
26
31class CloneRevision extends BaseRevision implements Revision
32{
33 protected bool $available = true;
35 protected int $version_number = 0;
36 protected ?Information $information = null;
37 protected int $owner_id = 0;
38 protected string $title = '';
39
43 public function __construct(ResourceIdentification $identification, protected FileRevision $revision_to_clone)
44 {
46 }
47
48
49 public function setVersionNumber(int $version_number): void
50 {
51 $this->version_number = $version_number;
52 }
53
54 public function getVersionNumber(): int
55 {
57 }
58
62 public function getInformation(): Information
63 {
64 return $this->information ?? new FileInformation();
65 }
66
68 {
69 $this->information = $information;
70 }
71
75 public function setUnavailable(): void
76 {
77 $this->available = false;
78 }
79
83 public function isAvailable(): bool
84 {
85 return $this->available;
86 }
87
88 public function getOwnerId(): int
89 {
90 return $this->owner_id;
91 }
92
93 public function setOwnerId(int $owner_id): self
94 {
95 $this->owner_id = $owner_id;
96 return $this;
97 }
98
102 public function setTitle(string $title): Revision
103 {
104 $this->title = $title;
105 return $this;
106 }
107
108 public function getTitle(): string
109 {
110 return $this->title;
111 }
112
114 {
115 return $this->revision_to_clone;
116 }
117}
__construct(ResourceIdentification $identification, protected FileRevision $revision_to_clone)
Revision constructor.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...