ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilUserCertificate Class Reference
+ Collaboration diagram for ilUserCertificate:

Public Member Functions

 __construct (private readonly int $patternCertificateId, private readonly int $objId, private readonly string $objType, private readonly int $userId, private readonly string $userName, private readonly int $acquiredTimestamp, private readonly string $certificateContent, private readonly string $templateValues, ?int $validUntil, private int $version, private readonly string $iliasVersion, private readonly bool $currentlyActive, private readonly CertificateId $certificate_id, ?string $backgroundImagePath=null, ?string $tile_image_path=null, ?string $backgroundImageIdentification=null, ?string $tile_image_identification=null, private ?int $id=null)
 
 withId (int $id)
 
 withVersion (int $version)
 
 getPatternCertificateId ()
 
 getObjId ()
 
 getObjType ()
 
 getUserId ()
 
 getUserName ()
 
 getAcquiredTimestamp ()
 
 getCertificateContent ()
 
 getTemplateValues ()
 
 getValidUntil ()
 
 getVersion ()
 
 getIliasVersion ()
 
 isCurrentlyActive ()
 
 getId ()
 
 getBackgroundImagePath ()
 
 getBackgroundImageIdentification ()
 
 getCurrentBackgroundImageUsed ()
 
 getTileImagePath ()
 
 getTileImageIdentification ()
 
 getCurrentTileImageUsed ()
 
 getCertificateId ()
 

Private Attributes

readonly int $validUntil
 
readonly string $backgroundImageIdentification
 
readonly string $tile_image_identification
 
readonly string $backgroundImagePath
 
readonly string $tile_image_path
 

Detailed Description

Author
Niels Theen nthee.nosp@m.n@da.nosp@m.tabay.nosp@m..de

Definition at line 26 of file class.ilUserCertificate.php.

Constructor & Destructor Documentation

◆ __construct()

ilUserCertificate::__construct ( private readonly int  $patternCertificateId,
private readonly int  $objId,
private readonly string  $objType,
private readonly int  $userId,
private readonly string  $userName,
private readonly int  $acquiredTimestamp,
private readonly string  $certificateContent,
private readonly string  $templateValues,
?int  $validUntil,
private int  $version,
private readonly string  $iliasVersion,
private readonly bool  $currentlyActive,
private readonly CertificateId  $certificate_id,
?string  $backgroundImagePath = null,
?string  $tile_image_path = null,
?string  $backgroundImageIdentification = null,
?string  $tile_image_identification = null,
private ?int  $id = null 
)

Definition at line 34 of file class.ilUserCertificate.php.

53 {
54 $this->validUntil = (int) $validUntil;
55 $this->backgroundImagePath = (string) $backgroundImagePath;
56 $this->tile_image_path = (string) $tile_image_path;
57 $this->backgroundImageIdentification = (string) $backgroundImageIdentification;
58 $this->tile_image_identification = (string) $tile_image_identification;
59 }
readonly string $backgroundImagePath
readonly string $tile_image_path
readonly string $backgroundImageIdentification
readonly string $tile_image_identification

References $backgroundImageIdentification, $backgroundImagePath, $tile_image_identification, $tile_image_path, $validUntil, and ILIAS\Repository\int().

+ Here is the call graph for this function:

Member Function Documentation

◆ getAcquiredTimestamp()

ilUserCertificate::getAcquiredTimestamp ( )

Definition at line 102 of file class.ilUserCertificate.php.

102 : int
103 {
104 return $this->acquiredTimestamp;
105 }

Referenced by ilUserCertificateRepository\save().

+ Here is the caller graph for this function:

◆ getBackgroundImageIdentification()

ilUserCertificate::getBackgroundImageIdentification ( )

Definition at line 147 of file class.ilUserCertificate.php.

147 : string
148 {
150 }

References $backgroundImageIdentification.

Referenced by getCurrentBackgroundImageUsed(), and ilUserCertificateRepository\save().

+ Here is the caller graph for this function:

◆ getBackgroundImagePath()

ilUserCertificate::getBackgroundImagePath ( )

Definition at line 142 of file class.ilUserCertificate.php.

142 : string
143 {
145 }

References $backgroundImagePath.

Referenced by getCurrentBackgroundImageUsed(), and ilUserCertificateRepository\save().

+ Here is the caller graph for this function:

◆ getCertificateContent()

ilUserCertificate::getCertificateContent ( )

Definition at line 107 of file class.ilUserCertificate.php.

107 : string
108 {
109 return $this->certificateContent;
110 }

Referenced by ilPdfGenerator\createPDFScalar(), and ilUserCertificateRepository\save().

+ Here is the caller graph for this function:

◆ getCertificateId()

ilUserCertificate::getCertificateId ( )

Definition at line 178 of file class.ilUserCertificate.php.

179 {
180 return $this->certificate_id;
181 }

Referenced by ilUserCertificateRepository\save().

+ Here is the caller graph for this function:

◆ getCurrentBackgroundImageUsed()

ilUserCertificate::getCurrentBackgroundImageUsed ( )

Definition at line 152 of file class.ilUserCertificate.php.

152 : string
153 {
154 if ($this->getBackgroundImageIdentification() === '' || $this->getBackgroundImageIdentification() === '-') {
155 return $this->getBackgroundImagePath();
156 }
157 return $this->getBackgroundImageIdentification();
158 }

References getBackgroundImageIdentification(), and getBackgroundImagePath().

Referenced by ilPdfGenerator\createPDFScalar().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getCurrentTileImageUsed()

ilUserCertificate::getCurrentTileImageUsed ( )

Definition at line 170 of file class.ilUserCertificate.php.

170 : string
171 {
172 if ($this->getTileImageIdentification() === '' || $this->getTileImageIdentification() === '-') {
173 return $this->getTileImagePath();
174 }
175 return $this->getTileImageIdentification();
176 }

References getTileImageIdentification(), and getTileImagePath().

+ Here is the call graph for this function:

◆ getId()

ilUserCertificate::getId ( )

Definition at line 137 of file class.ilUserCertificate.php.

137 : ?int
138 {
139 return $this->id;
140 }
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23

References $id.

◆ getIliasVersion()

ilUserCertificate::getIliasVersion ( )

Definition at line 127 of file class.ilUserCertificate.php.

127 : string
128 {
129 return $this->iliasVersion;
130 }

Referenced by ilUserCertificateRepository\save().

+ Here is the caller graph for this function:

◆ getObjId()

ilUserCertificate::getObjId ( )

Definition at line 82 of file class.ilUserCertificate.php.

82 : int
83 {
84 return $this->objId;
85 }
$objId
Definition: xapitoken.php:57

References $objId.

Referenced by ilUserCertificateRepository\save().

+ Here is the caller graph for this function:

◆ getObjType()

ilUserCertificate::getObjType ( )

Definition at line 87 of file class.ilUserCertificate.php.

87 : string
88 {
89 return $this->objType;
90 }

Referenced by ilUserCertificateRepository\save().

+ Here is the caller graph for this function:

◆ getPatternCertificateId()

ilUserCertificate::getPatternCertificateId ( )

Definition at line 77 of file class.ilUserCertificate.php.

77 : int
78 {
79 return $this->patternCertificateId;
80 }

Referenced by ilUserCertificateRepository\save().

+ Here is the caller graph for this function:

◆ getTemplateValues()

ilUserCertificate::getTemplateValues ( )

Definition at line 112 of file class.ilUserCertificate.php.

112 : string
113 {
114 return $this->templateValues;
115 }

Referenced by ilUserCertificateRepository\save().

+ Here is the caller graph for this function:

◆ getTileImageIdentification()

ilUserCertificate::getTileImageIdentification ( )

Definition at line 165 of file class.ilUserCertificate.php.

165 : string
166 {
168 }

References $tile_image_identification.

Referenced by getCurrentTileImageUsed(), and ilUserCertificateRepository\save().

+ Here is the caller graph for this function:

◆ getTileImagePath()

ilUserCertificate::getTileImagePath ( )

Definition at line 160 of file class.ilUserCertificate.php.

160 : string
161 {
163 }

References $tile_image_path.

Referenced by getCurrentTileImageUsed(), and ilUserCertificateRepository\save().

+ Here is the caller graph for this function:

◆ getUserId()

ilUserCertificate::getUserId ( )

Definition at line 92 of file class.ilUserCertificate.php.

92 : int
93 {
94 return $this->userId;
95 }

Referenced by ilUserCertificateRepository\save().

+ Here is the caller graph for this function:

◆ getUserName()

ilUserCertificate::getUserName ( )

Definition at line 97 of file class.ilUserCertificate.php.

97 : string
98 {
99 return $this->userName;
100 }

Referenced by ilUserCertificateRepository\save().

+ Here is the caller graph for this function:

◆ getValidUntil()

ilUserCertificate::getValidUntil ( )

Definition at line 117 of file class.ilUserCertificate.php.

117 : int
118 {
119 return $this->validUntil;
120 }

References $validUntil.

Referenced by ilUserCertificateRepository\save().

+ Here is the caller graph for this function:

◆ getVersion()

ilUserCertificate::getVersion ( )

Definition at line 122 of file class.ilUserCertificate.php.

122 : int
123 {
124 return $this->version;
125 }
$version
Definition: plugin.php:24

References $version.

◆ isCurrentlyActive()

ilUserCertificate::isCurrentlyActive ( )

Definition at line 132 of file class.ilUserCertificate.php.

132 : bool
133 {
134 return $this->currentlyActive;
135 }

Referenced by ilUserCertificateRepository\save().

+ Here is the caller graph for this function:

◆ withId()

ilUserCertificate::withId ( int  $id)

Definition at line 61 of file class.ilUserCertificate.php.

61 : self
62 {
63 $clone = clone $this;
64 $clone->id = $id;
65
66 return $clone;
67 }

References $id.

Referenced by ilUserCertificateRepository\save().

+ Here is the caller graph for this function:

◆ withVersion()

ilUserCertificate::withVersion ( int  $version)

Definition at line 69 of file class.ilUserCertificate.php.

69 : self
70 {
71 $clone = clone $this;
72 $clone->version = $version;
73
74 return $clone;
75 }

References $version.

Field Documentation

◆ $backgroundImageIdentification

readonly string ilUserCertificate::$backgroundImageIdentification
private

Definition at line 29 of file class.ilUserCertificate.php.

Referenced by __construct(), and getBackgroundImageIdentification().

◆ $backgroundImagePath

readonly string ilUserCertificate::$backgroundImagePath
private

Definition at line 31 of file class.ilUserCertificate.php.

Referenced by __construct(), and getBackgroundImagePath().

◆ $tile_image_identification

readonly string ilUserCertificate::$tile_image_identification
private

Definition at line 30 of file class.ilUserCertificate.php.

Referenced by __construct(), and getTileImageIdentification().

◆ $tile_image_path

readonly string ilUserCertificate::$tile_image_path
private

Definition at line 32 of file class.ilUserCertificate.php.

Referenced by __construct(), and getTileImagePath().

◆ $validUntil

readonly int ilUserCertificate::$validUntil
private

Definition at line 28 of file class.ilUserCertificate.php.

Referenced by __construct(), and getValidUntil().


The documentation for this class was generated from the following file: