|
| __construct (private readonly int $objectId, private readonly string $certificatePath, private readonly ilCertificatePlaceholderDescription $placeholderDescriptionObject, private readonly ilLogger $logger, private readonly Filesystem $filesystem, private readonly IRSS $irss, ?ilCertificateTemplateRepository $templateRepository=null, ?ilCertificateObjectHelper $objectHelper=null, ?ilCertificateUtilHelper $utilHelper=null, ?ilDBInterface $database=null, ?\ILIAS\Data\Factory $df=null, ?SVGBlacklistPreProcessor $svg_blacklist_processor=null) |
|
◆ __construct()
ilCertificateTemplateImportAction::__construct |
( |
private readonly int |
$objectId, |
|
|
private readonly string |
$certificatePath, |
|
|
private readonly ilCertificatePlaceholderDescription |
$placeholderDescriptionObject, |
|
|
private readonly ilLogger |
$logger, |
|
|
private readonly Filesystem |
$filesystem, |
|
|
private readonly IRSS |
$irss, |
|
|
?ilCertificateTemplateRepository |
$templateRepository = null , |
|
|
?ilCertificateObjectHelper |
$objectHelper = null , |
|
|
?ilCertificateUtilHelper |
$utilHelper = null , |
|
|
?ilDBInterface |
$database = null , |
|
|
?\ILIAS\Data\Factory |
$df = null , |
|
|
?SVGBlacklistPreProcessor |
$svg_blacklist_processor = null |
|
) |
| |
Definition at line 43 of file class.ilCertificateTemplateImportAction.php.
56 {
58 if ($database === null) {
59 $database =
$DIC->database();
60 }
61
64 }
66
69 }
71
74 }
77 $this->df =
$df ?? new \ILIAS\Data\Factory();
79 }
Class SVGBlacklistPreProcessor.
readonly ilCertificateTemplateRepository $templateRepository
readonly ilCertificateObjectHelper $objectHelper
readonly SVGBlacklistPreProcessor $svg_blacklist_processor
readonly ilCertificateUtilHelper $utilHelper
readonly ILIAS Data Factory $df
Just a wrapper class to create Unit Test for other classes.
References $df, $DIC, $objectHelper, $svg_blacklist_processor, $templateRepository, and $utilHelper.
◆ createArchiveDirectory()
ilCertificateTemplateImportAction::createArchiveDirectory |
( |
string |
$installationID | ) |
|
|
private |
Creates a directory for a zip archive containing multiple certificates.
- Returns
- string The created archive directory
- Exceptions
-
Definition at line 291 of file class.ilCertificateTemplateImportAction.php.
291 : string
292 {
293 $type = $this->objectHelper->lookupType($this->objectId);
294 $certificateId = $this->objectId;
295
296 $dir = $this->certificatePath . time() . '__' . $installationID . '__' . $type . '__' . $certificateId . '__certificate/';
299 }
301
302 return $dir;
303 }
References ILIAS\Repository\filesystem().
◆ $df
readonly ILIAS Data Factory ilCertificateTemplateImportAction::$df |
|
private |
◆ $objectHelper
◆ $stakeholder
◆ $svg_blacklist_processor
◆ $templateRepository
◆ $utilHelper
The documentation for this class was generated from the following file: