ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilObjFileVersion.php
Go to the documentation of this file.
1<?php
2
23class ilObjFileVersion extends ArrayObject
24{
28 public function __construct(array $input = [])
29 {
30 parent::__construct($input);
31 foreach ($input as $k => $v) {
32 $this->{$k} = $v;
33 }
34 }
35
39 public function getArrayCopy(): array
40 {
41 $a = [];
42 $r = new ReflectionClass($this);
43 foreach ($r->getProperties() as $p) {
44 $p->setAccessible(true);
45 $a[$p->getName()] = $p->getValue($this);
46 }
47 return $a;
48 }
49
50 protected string $date = '';
51 protected int $user_id = 0;
52 protected int $obj_id = 0;
53 protected string $obj_type = '';
54 protected string $action = '';
55 protected string $info_params = '';
56 protected string $user_comment = '';
57 protected int $hist_entry_id = 1;
58 protected ?string $title = '';
59 protected string $filename = '';
60 protected string $version = '';
61 protected string $max_version = '';
62 protected string $rollback_version = '';
63 protected string $rollback_user_id = '';
64 protected int $size = 0;
65
66 public function offsetExists(mixed $key): bool
67 {
68 return property_exists($this, $key);
69 }
70
71 public function offsetGet($index): mixed
72 {
73 return $this->{$index};
74 }
75
76 public function getDate(): string
77 {
78 return $this->date;
79 }
80
81 public function setDate(string $date): self
82 {
83 $this->date = $date;
84 return $this;
85 }
86
87 public function getUserId(): int
88 {
89 return $this->user_id;
90 }
91
92 public function setUserId(int $user_id): self
93 {
94 $this->user_id = $user_id;
95 return $this;
96 }
97
98 public function getObjId(): int
99 {
100 return $this->obj_id;
101 }
102
103 public function setObjId(int $obj_id): self
104 {
105 $this->obj_id = $obj_id;
106 return $this;
107 }
108
109 public function getObjType(): string
110 {
111 return $this->obj_type;
112 }
113
114 public function setObjType(string $obj_type): self
115 {
116 $this->obj_type = $obj_type;
117 return $this;
118 }
119
120 public function getAction(): string
121 {
122 return $this->action;
123 }
124
125 public function setAction(string $action): self
126 {
127 $this->action = $action;
128 return $this;
129 }
130
131 public function getInfoParams(): string
132 {
133 return $this->info_params;
134 }
135
136 public function setInfoParams(string $info_params): self
137 {
138 $this->info_params = $info_params;
139 return $this;
140 }
141
142 public function getUserComment(): string
143 {
144 return $this->user_comment;
145 }
146
147 public function setUserComment(string $user_comment): self
148 {
149 $this->user_comment = $user_comment;
150 return $this;
151 }
152
153 public function getHistEntryId(): int
154 {
156 }
157
158 public function setHistEntryId(int $hist_entry_id): self
159 {
160 $this->hist_entry_id = $hist_entry_id;
161 return $this;
162 }
163
164 public function getTitle(): string
165 {
166 return $this->title;
167 }
168
169 public function setTitle(string $title): self
170 {
171 $this->title = $title;
172 return $this;
173 }
174
175 public function getFilename(): string
176 {
177 return $this->filename;
178 }
179
180 public function setFilename(string $filename): self
181 {
182 $this->filename = $filename;
183 return $this;
184 }
185
186 public function getVersion(): string
187 {
188 return $this->version;
189 }
190
191 public function setVersion(string $version): self
192 {
193 $this->version = $version;
194 return $this;
195 }
196
197 public function getSize(): int
198 {
199 return $this->size;
200 }
201
202 public function setSize(int $size): self
203 {
204 $this->size = $size;
205 return $this;
206 }
207}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setVersion(string $version)
setInfoParams(string $info_params)
setFilename(string $filename)
setHistEntryId(int $hist_entry_id)
setUserComment(string $user_comment)
__construct(array $input=[])
@inheritDoc
setObjType(string $obj_type)
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
$a
thx to https://mlocati.github.io/php-cs-fixer-configurator for the examples