|
| | __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 289 of file class.ilCertificateTemplateImportAction.php.
289 : string
290 {
291 $type = $this->objectHelper->lookupType($this->objectId);
292 $certificateId = $this->objectId;
293
294 $dir = $this->certificatePath . time() . '__' . $installationID . '__' . $type . '__' . $certificateId . '__certificate/';
297 }
299
300 return $dir;
301 }
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: