ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
FileRevision.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
26
31class FileRevision 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
40
41 public function setVersionNumber(int $version_number): void
42 {
43 $this->version_number = $version_number;
44 }
45
46 public function getVersionNumber(): int
47 {
49 }
50
54 public function getInformation(): Information
55 {
56 return $this->information ?? new FileInformation();
57 }
58
60 {
61 $this->information = $information;
62 }
63
67 public function setUnavailable(): void
68 {
69 $this->available = false;
70 }
71
75 public function isAvailable(): bool
76 {
77 return $this->available;
78 }
79
80 public function getOwnerId(): int
81 {
82 return $this->owner_id;
83 }
84
85 public function setOwnerId(int $owner_id): self
86 {
87 $this->owner_id = $owner_id;
88 return $this;
89 }
90
94 public function setTitle(string $title): Revision
95 {
96 $this->title = $title;
97 return $this;
98 }
99
100 public function getTitle(): string
101 {
102 return $this->title;
103 }
104}
setInformation(Information $information)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...