ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
ilCertificateTemplate Class Reference
+ Collaboration diagram for ilCertificateTemplate:

Public Member Functions

 __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)
 
 getObjId ()
 
 getCertificateContent ()
 
 getCertificateHash ()
 
 getTemplateValues ()
 
 getVersion ()
 
 getIliasVersion ()
 
 getCreatedTimestamp ()
 
 isCurrentlyActive ()
 
 getId ()
 
 getCurrentBackgroundImageUsed ()
 
 getBackgroundImageIdentification ()
 
 getBackgroundImagePath ()
 
 getObjType ()
 
 isDeleted ()
 
 getCurrentTileImageUsed ()
 
 getTileImageIdentification ()
 
 getTileImagePath ()
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilCertificateTemplate::__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 
)

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

44  {
45  }

Member Function Documentation

◆ getBackgroundImageIdentification()

ilCertificateTemplate::getBackgroundImageIdentification ( )

Definition at line 100 of file class.ilCertificateTemplate.php.

Referenced by ilCertificateTemplatePreviewAction\exchangeCertificateVariables(), getCurrentBackgroundImageUsed(), and ilCertificateTemplateDatabaseRepository\save().

100  : string
101  {
102  return $this->backgroundIdentification;
103  }
+ Here is the caller graph for this function:

◆ getBackgroundImagePath()

ilCertificateTemplate::getBackgroundImagePath ( )

Definition at line 105 of file class.ilCertificateTemplate.php.

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

105  : string
106  {
107  return $this->backgroundImagePath;
108  }
+ Here is the caller graph for this function:

◆ getCertificateContent()

ilCertificateTemplate::getCertificateContent ( )

Definition at line 52 of file class.ilCertificateTemplate.php.

Referenced by ilCertificateGUI\createFormatArray(), and ilCertificateTemplateDatabaseRepository\save().

52  : string
53  {
54  return $this->certificateContent;
55  }
+ Here is the caller graph for this function:

◆ getCertificateHash()

ilCertificateTemplate::getCertificateHash ( )

Definition at line 57 of file class.ilCertificateTemplate.php.

Referenced by ilCertificateGUI\createFormatArray(), and ilCertificateTemplateDatabaseRepository\save().

57  : string
58  {
59  return $this->certificateHash;
60  }
+ Here is the caller graph for this function:

◆ getCreatedTimestamp()

ilCertificateTemplate::getCreatedTimestamp ( )

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

Referenced by ilCertificateTemplateDatabaseRepository\save().

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

◆ getCurrentBackgroundImageUsed()

ilCertificateTemplate::getCurrentBackgroundImageUsed ( )

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

References getBackgroundImageIdentification(), and getBackgroundImagePath().

92  : string
93  {
94  if ($this->getBackgroundImageIdentification() === '' || $this->getBackgroundImageIdentification() === '-') {
95  return $this->getBackgroundImagePath();
96  }
97  return $this->getBackgroundImageIdentification();
98  }
+ Here is the call graph for this function:

◆ getCurrentTileImageUsed()

ilCertificateTemplate::getCurrentTileImageUsed ( )

Definition at line 120 of file class.ilCertificateTemplate.php.

References getTileImageIdentification(), and getTileImagePath().

120  : string
121  {
122  if ($this->getTileImageIdentification() === '' || $this->getTileImageIdentification() === '-') {
123  return $this->getTileImagePath();
124  }
125  return $this->getTileImageIdentification();
126  }
+ Here is the call graph for this function:

◆ getId()

ilCertificateTemplate::getId ( )

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

References $id.

Referenced by ILIAS\Certificate\API\UserCertificateAPI\certificateCriteriaMetForGivenTemplate(), processEntry(), ILIAS\Certificate\API\UserCertificateAPI\processEntry(), and ilCertificateTemplateDatabaseRepository\updateActivity().

87  : ?int
88  {
89  return $this->id;
90  }
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
+ Here is the caller graph for this function:

◆ getIliasVersion()

ilCertificateTemplate::getIliasVersion ( )

Definition at line 72 of file class.ilCertificateTemplate.php.

Referenced by ilCertificateTemplateDatabaseRepository\save().

72  : string
73  {
74  return $this->iliasVersion;
75  }
+ Here is the caller graph for this function:

◆ getObjId()

ilCertificateTemplate::getObjId ( )

Definition at line 47 of file class.ilCertificateTemplate.php.

Referenced by ILIAS\Certificate\API\UserCertificateAPI\certificateCriteriaMetForGivenTemplate(), ILIAS\Certificate\API\UserCertificateAPI\processEntry(), and ilCertificateTemplateDatabaseRepository\save().

47  : int
48  {
49  return $this->obj_id;
50  }
+ Here is the caller graph for this function:

◆ getObjType()

ilCertificateTemplate::getObjType ( )

Definition at line 110 of file class.ilCertificateTemplate.php.

Referenced by ILIAS\Certificate\API\UserCertificateAPI\certificateCriteriaMetForGivenTemplate(), ILIAS\Certificate\API\UserCertificateAPI\processEntry(), and ilCertificateTemplateDatabaseRepository\save().

110  : string
111  {
112  return $this->obj_type;
113  }
+ Here is the caller graph for this function:

◆ getTemplateValues()

ilCertificateTemplate::getTemplateValues ( )

Definition at line 62 of file class.ilCertificateTemplate.php.

Referenced by ilCertificateTemplateDatabaseRepository\save().

62  : string
63  {
64  return $this->templateValues;
65  }
+ Here is the caller graph for this function:

◆ getTileImageIdentification()

ilCertificateTemplate::getTileImageIdentification ( )

Definition at line 128 of file class.ilCertificateTemplate.php.

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

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

◆ getTileImagePath()

ilCertificateTemplate::getTileImagePath ( )

Definition at line 133 of file class.ilCertificateTemplate.php.

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

133  : string
134  {
135  return $this->tile_image_path;
136  }
+ Here is the caller graph for this function:

◆ getVersion()

ilCertificateTemplate::getVersion ( )

Definition at line 67 of file class.ilCertificateTemplate.php.

References $version.

Referenced by ilCertificateTemplateDatabaseRepository\fetchPreviousCertificate(), and ilCertificateTemplateDatabaseRepository\save().

67  : int
68  {
69  return $this->version;
70  }
$version
Definition: plugin.php:24
+ Here is the caller graph for this function:

◆ isCurrentlyActive()

ilCertificateTemplate::isCurrentlyActive ( )

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

Referenced by ILIAS\Certificate\API\UserCertificateAPI\certificateCriteriaMetForGivenTemplate(), and ilCertificateTemplateDatabaseRepository\save().

82  : bool
83  {
84  return $this->currentlyActive;
85  }
+ Here is the caller graph for this function:

◆ isDeleted()

ilCertificateTemplate::isDeleted ( )

Definition at line 115 of file class.ilCertificateTemplate.php.

Referenced by ilCertificateTemplateDatabaseRepository\save().

115  : bool
116  {
117  return $this->deleted;
118  }
+ Here is the caller graph for this function:

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