ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilUserCertificate.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2018 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
8 {
13 
17  private $objId;
18 
22  private $objType;
23 
27  private $userId;
28 
32  private $userName;
33 
38 
43 
47  private $templateValues;
48 
52  private $validUntil;
53 
57  private $version;
58 
62  private $iliasVersion;
63 
68 
72  private $id;
73 
78 
83 
101  public function __construct(
103  $objId,
104  $objType,
105  $userId,
106  $userName,
110  $validUntil,
111  $version,
114  $backgroundImagePath = null,
115  $thumbnailImagePath = null,
116  $id = null
117  ) {
118  $this->patternCertificateId = $patternCertificateId;
119  $this->objId = $objId;
120  $this->objType = $objType;
121  $this->userId = $userId;
122  $this->userName = $userName;
123  $this->acquiredTimestamp = $acquiredTimestamp;
124  $this->certificateContent = $certificateContent;
125  $this->templateValues = $templateValues;
126  $this->validUntil = $validUntil;
127  $this->version = $version;
128  $this->iliasVersion = $iliasVersion;
129  $this->currentlyActive = $currentlyActive;
130  $this->backgroundImagePath = $backgroundImagePath;
131  $this->thumbnailImagePath = $thumbnailImagePath;
132  $this->id = $id;
133  }
134 
139  public function withId(int $id) : self
140  {
141  $clone = clone $this;
142  $clone->id = $id;
143 
144  return $clone;
145  }
146 
151  public function withVersion(int $version) : self
152  {
153  $clone = clone $this;
154  $clone->version = $version;
155 
156  return $clone;
157  }
158 
162  public function getPatternCertificateId() : int
163  {
165  }
166 
170  public function getObjId() : int
171  {
172  return $this->objId;
173  }
174 
178  public function getObjType() : string
179  {
180  return $this->objType;
181  }
182 
186  public function getUserId() : int
187  {
188  return $this->userId;
189  }
190 
194  public function getUserName() : string
195  {
196  return $this->userName;
197  }
198 
202  public function getAcquiredTimestamp() : int
203  {
205  }
206 
210  public function getCertificateContent() : string
211  {
213  }
214 
218  public function getTemplateValues() : string
219  {
220  return $this->templateValues;
221  }
222 
226  public function getValidUntil()
227  {
228  return $this->validUntil;
229  }
230 
234  public function getVersion() : string
235  {
236  return $this->version;
237  }
238 
242  public function getIliasVersion() : string
243  {
244  return $this->iliasVersion;
245  }
246 
250  public function isCurrentlyActive() : bool
251  {
252  return $this->currentlyActive;
253  }
254 
258  public function getId() : int
259  {
260  return $this->id;
261  }
262 
266  public function getBackgroundImagePath()
267  {
269  }
270 
274  public function getThumbnailImagePath() : string
275  {
277  }
278 }
__construct( $patternCertificateId, $objId, $objType, $userId, $userName, $acquiredTimestamp, $certificateContent, $templateValues, $validUntil, $version, $iliasVersion, $currentlyActive, $backgroundImagePath=null, $thumbnailImagePath=null, $id=null)