ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
ARInformation.php
Go to the documentation of this file.
1 <?php
2 
4 
5 use ActiveRecord;
6 
13 {
14 
18  public function getConnectorContainerName() : string
19  {
20  return 'il_resource_info';
21  }
22 
31  protected $internal;
38  protected $identification;
45  protected $title;
52  protected $suffix;
59  protected $mime_type;
66  protected $size;
73  protected $creation_date;
74 
78  public function getInternal() : string
79  {
80  return $this->internal;
81  }
82 
87  public function setInternal(string $internal) : ARInformation
88  {
89  $this->internal = $internal;
90 
91  return $this;
92  }
93 
97  public function getIdentification() : string
98  {
99  return $this->identification;
100  }
101 
107  {
108  $this->identification = $identification;
109 
110  return $this;
111  }
112 
116  public function getTitle() : ?string
117  {
118  return $this->title ?? '';
119  }
120 
125  public function setTitle(string $title) : ARInformation
126  {
127  $this->title = $title;
128 
129  return $this;
130  }
131 
135  public function getSuffix() : ?string
136  {
137  return $this->suffix ?? '';
138  }
139 
144  public function setSuffix(string $suffix) : ARInformation
145  {
146  $this->suffix = $suffix;
147 
148  return $this;
149  }
150 
154  public function getMimeType() : string
155  {
156  return $this->mime_type ?? '';
157  }
158 
163  public function setMimeType(string $mime_type) : ARInformation
164  {
165  $this->mime_type = $mime_type;
166 
167  return $this;
168  }
169 
173  public function getSize() : int
174  {
175  return (int) $this->size;
176  }
177 
182  public function setSize(int $size) : ARInformation
183  {
184  $this->size = $size;
185 
186  return $this;
187  }
188 
192  public function getCreationDate() : int
193  {
194  return $this->creation_date ?? 0;
195  }
196 
202  {
203  $this->creation_date = $creation_date;
204  return $this;
205  }
206 
207 }