ILIAS  release_8 Revision v8.24
class.ilUserCertificate.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
25{
27 private int $objId;
28 private string $objType;
29 private int $userId;
30 private string $userName;
31 private int $acquiredTimestamp;
32 private string $certificateContent;
33 private string $templateValues;
34 private int $validUntil;
35 private int $version;
36 private string $iliasVersion;
37 private bool $currentlyActive;
38 private ?int $id;
39 private ?string $backgroundImagePath;
40 private ?string $thumbnailImagePath;
41
42 public function __construct(
44 int $objId,
45 string $objType,
46 int $userId,
47 string $userName,
50 string $templateValues,
51 ?int $validUntil,
52 int $version,
53 string $iliasVersion,
55 ?string $backgroundImagePath = null,
56 ?string $thumbnailImagePath = null,
57 ?int $id = null
58 ) {
59 $this->patternCertificateId = $patternCertificateId;
60 $this->objId = $objId;
61 $this->objType = $objType;
62 $this->userId = $userId;
63 $this->userName = $userName;
64 $this->acquiredTimestamp = $acquiredTimestamp;
65 $this->certificateContent = $certificateContent;
66 $this->templateValues = $templateValues;
67 $this->validUntil = (int) $validUntil;
68 $this->version = $version;
69 $this->iliasVersion = $iliasVersion;
70 $this->currentlyActive = $currentlyActive;
71 $this->backgroundImagePath = (string) $backgroundImagePath;
72 $this->thumbnailImagePath = (string) $thumbnailImagePath;
73 $this->id = $id;
74 }
75
76 public function withId(int $id): self
77 {
78 $clone = clone $this;
79 $clone->id = $id;
80
81 return $clone;
82 }
83
84 public function withVersion(int $version): self
85 {
86 $clone = clone $this;
87 $clone->version = $version;
88
89 return $clone;
90 }
91
92 public function getPatternCertificateId(): int
93 {
95 }
96
97 public function getObjId(): int
98 {
99 return $this->objId;
100 }
101
102 public function getObjType(): string
103 {
104 return $this->objType;
105 }
106
107 public function getUserId(): int
108 {
109 return $this->userId;
110 }
111
112 public function getUserName(): string
113 {
114 return $this->userName;
115 }
116
117 public function getAcquiredTimestamp(): int
118 {
120 }
121
122 public function getCertificateContent(): string
123 {
125 }
126
127 public function getTemplateValues(): string
128 {
130 }
131
132 public function getValidUntil(): int
133 {
134 return $this->validUntil;
135 }
136
137 public function getVersion(): int
138 {
139 return $this->version;
140 }
141
142 public function getIliasVersion(): string
143 {
144 return $this->iliasVersion;
145 }
146
147 public function isCurrentlyActive(): bool
148 {
150 }
151
152 public function getId(): ?int
153 {
154 return $this->id;
155 }
156
157 public function getBackgroundImagePath(): ?string
158 {
160 }
161
162 public function getThumbnailImagePath(): string
163 {
165 }
166}
__construct(int $patternCertificateId, int $objId, string $objType, int $userId, string $userName, int $acquiredTimestamp, string $certificateContent, string $templateValues, ?int $validUntil, int $version, string $iliasVersion, bool $currentlyActive, ?string $backgroundImagePath=null, ?string $thumbnailImagePath=null, ?int $id=null)