ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilCertificateTemplate.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
27{
28 public function __construct(
29 private readonly int $obj_id,
30 private readonly string $obj_type,
31 private readonly string $certificateContent,
32 private readonly string $certificateHash,
33 private readonly string $templateValues,
34 private readonly int $version,
35 private readonly string $iliasVersion,
36 private readonly int $createdTimestamp,
37 private readonly bool $currentlyActive,
38 private readonly string $backgroundImagePath = '',
39 private readonly string $tile_image_path = '',
40 private readonly string $backgroundIdentification = '',
41 private readonly string $tile_image_identification = '',
42 private readonly ?int $id = null,
43 private readonly bool $deleted = false
44 ) {
45 }
46
47 public function getObjId(): int
48 {
49 return $this->obj_id;
50 }
51
52 public function getCertificateContent(): string
53 {
54 return $this->certificateContent;
55 }
56
57 public function getCertificateHash(): string
58 {
59 return $this->certificateHash;
60 }
61
62 public function getTemplateValues(): string
63 {
64 return $this->templateValues;
65 }
66
67 public function getVersion(): int
68 {
69 return $this->version;
70 }
71
72 public function getIliasVersion(): string
73 {
74 return $this->iliasVersion;
75 }
76
77 public function getCreatedTimestamp(): int
78 {
79 return $this->createdTimestamp;
80 }
81
82 public function isCurrentlyActive(): bool
83 {
84 return $this->currentlyActive;
85 }
86
87 public function getId(): ?int
88 {
89 return $this->id;
90 }
91
92 public function getCurrentBackgroundImageUsed(): string
93 {
94 if ($this->getBackgroundImageIdentification() === '' || $this->getBackgroundImageIdentification() === '-') {
95 return $this->getBackgroundImagePath();
96 }
98 }
99
100 public function getBackgroundImageIdentification(): string
101 {
102 return $this->backgroundIdentification;
103 }
104
105 public function getBackgroundImagePath(): string
106 {
107 return $this->backgroundImagePath;
108 }
109
110 public function getObjType(): string
111 {
112 return $this->obj_type;
113 }
114
115 public function isDeleted(): bool
116 {
117 return $this->deleted;
118 }
119
120 public function getCurrentTileImageUsed(): string
121 {
122 if ($this->getTileImageIdentification() === '' || $this->getTileImageIdentification() === '-') {
123 return $this->getTileImagePath();
124 }
125 return $this->getTileImageIdentification();
126 }
127
128 public function getTileImageIdentification(): string
129 {
130 return $this->tile_image_identification;
131 }
132
133 public function getTileImagePath(): string
134 {
135 return $this->tile_image_path;
136 }
137}
$version
Definition: plugin.php:24
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
__construct(private readonly int $obj_id, private readonly string $obj_type, private readonly string $certificateContent, private readonly string $certificateHash, private readonly string $templateValues, private readonly int $version, private readonly string $iliasVersion, private readonly int $createdTimestamp, private readonly bool $currentlyActive, private readonly string $backgroundImagePath='', private readonly string $tile_image_path='', private readonly string $backgroundIdentification='', private readonly string $tile_image_identification='', private readonly ?int $id=null, private readonly bool $deleted=false)