ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
FileRevision.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
25 
30 class FileRevision extends BaseRevision implements Revision
31 {
32  protected bool $available = true;
33  protected \ILIAS\ResourceStorage\Identification\ResourceIdentification $identification;
34  protected int $version_number = 0;
36  protected int $owner_id = 0;
37  protected string $title = '';
38 
39 
40  public function setVersionNumber(int $version_number): void
41  {
42  $this->version_number = $version_number;
43  }
44 
45  public function getVersionNumber(): int
46  {
47  return $this->version_number;
48  }
49 
53  public function getInformation(): Information
54  {
55  return $this->information ?? new FileInformation();
56  }
57 
58  public function setInformation(Information $information): void
59  {
60  $this->information = $information;
61  }
62 
66  public function setUnavailable(): void
67  {
68  $this->available = false;
69  }
70 
74  public function isAvailable(): bool
75  {
76  return $this->available;
77  }
78 
79  public function getOwnerId(): int
80  {
81  return $this->owner_id;
82  }
83 
84  public function setOwnerId(int $owner_id): self
85  {
86  $this->owner_id = $owner_id;
87  return $this;
88  }
89 
93  public function setTitle(string $title): Revision
94  {
95  $this->title = $title;
96  return $this;
97  }
98 
99  public function getTitle(): string
100  {
101  return $this->title;
102  }
103 }
ILIAS ResourceStorage Identification ResourceIdentification $identification
setInformation(Information $information)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ILIAS ResourceStorage Information Information $information