ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
ARRevision.php
Go to the documentation of this file.
1 <?php
2 
4 
5 use ActiveRecord;
6 
12 class ARRevision extends ActiveRecord
13 {
14 
18  public function getConnectorContainerName()
19  {
20  return 'il_resource_revision';
21  }
22 
31  protected $internal;
38  protected $identification;
45  protected $title;
52  protected $available;
59  protected $version_number;
66  protected $owner_id;
67 
71  public function getInternal() : string
72  {
73  return $this->internal;
74  }
75 
80  public function setInternal(string $internal) : ARRevision
81  {
82  $this->internal = $internal;
83 
84  return $this;
85  }
86 
90  public function getIdentification() : string
91  {
92  return $this->identification;
93  }
94 
99  public function setIdentification(string $identification) : ARRevision
100  {
101  $this->identification = $identification;
102 
103  return $this;
104  }
105 
109  public function isAvailable() : bool
110  {
111  return (bool) $this->available;
112  }
113 
118  public function setAvailable(bool $available) : ARRevision
119  {
120  $this->available = $available;
121 
122  return $this;
123  }
124 
128  public function getVersionNumber() : int
129  {
130  return (int) $this->version_number;
131  }
132 
138  {
139  $this->version_number = $version_number;
140 
141  return $this;
142  }
143 
147  public function getOwnerId() : int
148  {
149  return (int) $this->owner_id;
150  }
151 
156  public function setOwnerId(int $owner_id) : ARRevision
157  {
158  $this->owner_id = $owner_id;
159  return $this;
160  }
161 
165  public function getTitle() : string
166  {
167  return $this->title ?? '';
168  }
169 
174  public function setTitle(string $title) : ARRevision
175  {
176  $this->title = $title;
177  return $this;
178  }
179 
180 }