ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
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.

References ILIAS\Repository\int().

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 $tile_image_identification
readonly string $backgroundImagePath
readonly string $tile_image_path
readonly string $backgroundImageIdentification
+ Here is the call graph for this function:

Member Function Documentation

◆ getAcquiredTimestamp()

ilUserCertificate::getAcquiredTimestamp ( )

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

Referenced by ilUserCertificateRepository\save().

102  : int
103  {
104  return $this->acquiredTimestamp;
105  }
+ Here is the caller graph for this function:

◆ getBackgroundImageIdentification()

ilUserCertificate::getBackgroundImageIdentification ( )

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

References $backgroundImageIdentification.

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

147  : string
148  {
150  }
readonly string $backgroundImageIdentification
+ Here is the caller graph for this function:

◆ getBackgroundImagePath()

ilUserCertificate::getBackgroundImagePath ( )

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

References $backgroundImagePath.

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

142  : string
143  {
145  }
readonly string $backgroundImagePath
+ Here is the caller graph for this function:

◆ getCertificateContent()

ilUserCertificate::getCertificateContent ( )

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

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

107  : string
108  {
109  return $this->certificateContent;
110  }
+ Here is the caller graph for this function:

◆ getCertificateId()

ilUserCertificate::getCertificateId ( )

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

Referenced by ilUserCertificateRepository\save().

178  : CertificateId
179  {
180  return $this->certificate_id;
181  }
+ Here is the caller graph for this function:

◆ getCurrentBackgroundImageUsed()

ilUserCertificate::getCurrentBackgroundImageUsed ( )

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

References getBackgroundImageIdentification(), and getBackgroundImagePath().

Referenced by ilPdfGenerator\createPDFScalar().

152  : string
153  {
154  if ($this->getBackgroundImageIdentification() === '' || $this->getBackgroundImageIdentification() === '-') {
155  return $this->getBackgroundImagePath();
156  }
157  return $this->getBackgroundImageIdentification();
158  }
+ 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.

References getTileImageIdentification(), and getTileImagePath().

170  : string
171  {
172  if ($this->getTileImageIdentification() === '' || $this->getTileImageIdentification() === '-') {
173  return $this->getTileImagePath();
174  }
175  return $this->getTileImageIdentification();
176  }
+ Here is the call graph for this function:

◆ getId()

ilUserCertificate::getId ( )

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

References $id.

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

◆ getIliasVersion()

ilUserCertificate::getIliasVersion ( )

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

Referenced by ilUserCertificateRepository\save().

127  : string
128  {
129  return $this->iliasVersion;
130  }
+ Here is the caller graph for this function:

◆ getObjId()

ilUserCertificate::getObjId ( )

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

References $objId.

Referenced by ilUserCertificateRepository\save().

82  : int
83  {
84  return $this->objId;
85  }
$objId
Definition: xapitoken.php:57
+ Here is the caller graph for this function:

◆ getObjType()

ilUserCertificate::getObjType ( )

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

Referenced by ilUserCertificateRepository\save().

87  : string
88  {
89  return $this->objType;
90  }
+ Here is the caller graph for this function:

◆ getPatternCertificateId()

ilUserCertificate::getPatternCertificateId ( )

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

Referenced by ilUserCertificateRepository\save().

77  : int
78  {
79  return $this->patternCertificateId;
80  }
+ Here is the caller graph for this function:

◆ getTemplateValues()

ilUserCertificate::getTemplateValues ( )

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

Referenced by ilUserCertificateRepository\save().

112  : string
113  {
114  return $this->templateValues;
115  }
+ Here is the caller graph for this function:

◆ getTileImageIdentification()

ilUserCertificate::getTileImageIdentification ( )

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

References $tile_image_identification.

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

165  : string
166  {
168  }
readonly string $tile_image_identification
+ Here is the caller graph for this function:

◆ getTileImagePath()

ilUserCertificate::getTileImagePath ( )

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

References $tile_image_path.

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

160  : string
161  {
162  return $this->tile_image_path;
163  }
readonly string $tile_image_path
+ Here is the caller graph for this function:

◆ getUserId()

ilUserCertificate::getUserId ( )

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

Referenced by ilUserCertificateRepository\save().

92  : int
93  {
94  return $this->userId;
95  }
+ Here is the caller graph for this function:

◆ getUserName()

ilUserCertificate::getUserName ( )

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

Referenced by ilUserCertificateRepository\save().

97  : string
98  {
99  return $this->userName;
100  }
+ Here is the caller graph for this function:

◆ getValidUntil()

ilUserCertificate::getValidUntil ( )

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

References $validUntil.

Referenced by ilUserCertificateRepository\save().

117  : int
118  {
119  return $this->validUntil;
120  }
+ Here is the caller graph for this function:

◆ getVersion()

ilUserCertificate::getVersion ( )

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

References $version.

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

◆ isCurrentlyActive()

ilUserCertificate::isCurrentlyActive ( )

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

Referenced by ilUserCertificateRepository\save().

132  : bool
133  {
134  return $this->currentlyActive;
135  }
+ Here is the caller graph for this function:

◆ withId()

ilUserCertificate::withId ( int  $id)

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

References $id.

Referenced by ilUserCertificateRepository\save().

61  : self
62  {
63  $clone = clone $this;
64  $clone->id = $id;
65 
66  return $clone;
67  }
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
+ Here is the caller graph for this function:

◆ withVersion()

ilUserCertificate::withVersion ( int  $version)

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

References $version.

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

Field Documentation

◆ $backgroundImageIdentification

readonly string ilUserCertificate::$backgroundImageIdentification
private

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

Referenced by getBackgroundImageIdentification().

◆ $backgroundImagePath

readonly string ilUserCertificate::$backgroundImagePath
private

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

Referenced by getBackgroundImagePath().

◆ $tile_image_identification

readonly string ilUserCertificate::$tile_image_identification
private

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

Referenced by getTileImageIdentification().

◆ $tile_image_path

readonly string ilUserCertificate::$tile_image_path
private

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

Referenced by getTileImagePath().

◆ $validUntil

readonly int ilUserCertificate::$validUntil
private

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

Referenced by getValidUntil().


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