ILIAS  trunk Revision v11.0_alpha-1769-g99a433fe2dc
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
StreamReplacementRevision.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
27 
32 {
33  protected bool $available = true;
35  protected int $version_number = 0;
37  protected int $owner_id = 0;
38  protected string $title = '';
39 
43  public function __construct(ResourceIdentification $identification, private FileStream $file_stream)
44  {
45  parent::__construct($identification);
46  }
47 
48  public function getReplacementStream(): FileStream
49  {
50  return $this->file_stream;
51  }
52 
53  public function setVersionNumber(int $version_number): void
54  {
55  $this->version_number = $version_number;
56  }
57 
58  public function getVersionNumber(): int
59  {
60  return $this->version_number;
61  }
62 
66  public function getInformation(): Information
67  {
68  return $this->information ?? new FileInformation();
69  }
70 
71  public function setInformation(Information $information): void
72  {
73  $this->information = $information;
74  }
75 
79  public function setUnavailable(): void
80  {
81  $this->available = false;
82  }
83 
87  public function isAvailable(): bool
88  {
89  return $this->available;
90  }
91 
92  public function getOwnerId(): int
93  {
94  return $this->owner_id;
95  }
96 
97  public function setOwnerId(int $owner_id): self
98  {
99  $this->owner_id = $owner_id;
100  return $this;
101  }
102 
106  public function setTitle(string $title): Revision
107  {
108  $this->title = $title;
109  return $this;
110  }
111 
112  public function getTitle(): string
113  {
114  return $this->title;
115  }
116 }
__construct(ResourceIdentification $identification, private FileStream $file_stream)
Revision constructor.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(Container $dic, ilPlugin $plugin)
The base interface for all filesystem streams.
Definition: FileStream.php:31