◆ __construct()
◆ delete()
ilCertificateTemplateDeleteAction::delete |
( |
|
$templateTemplateId, |
|
|
|
$objectId |
|
) |
| |
- Parameters
-
| $templateTemplateId | |
| $objectId | |
string | $iliasVersion | |
- Returns
- mixed
- Exceptions
-
Implements ilCertificateDeleteAction.
Definition at line 72 of file class.ilCertificateTemplateDeleteAction.php.
References $iliasVersion, and overwriteBackgroundImageThumbnail().
74 $template = $this->templateRepository->fetchCurrentlyUsedCertificate($objectId);
76 $this->templateRepository->deleteTemplate($templateTemplateId, $objectId);
78 $version = (int) $template->getVersion();
81 $this->objectHelper->lookupType($objectId),
93 $this->templateRepository->save($certificateTemplate);
overwriteBackgroundImageThumbnail(ilCertificateTemplate $previousTemplate)
◆ overwriteBackgroundImageThumbnail()
ilCertificateTemplateDeleteAction::overwriteBackgroundImageThumbnail |
( |
ilCertificateTemplate |
$previousTemplate | ) |
|
|
private |
- Parameters
-
Definition at line 101 of file class.ilCertificateTemplateDeleteAction.php.
References ilCertificateTemplate\getBackgroundImagePath().
Referenced by delete().
105 if (null === $relativePath ||
'' === $relativePath) {
106 $relativePath =
'/certificates/default/background.jpg';
109 $pathInfo = pathinfo($relativePath);
111 $newFilePath = $pathInfo[
'dirname'] .
'/background.jpg.thumb.jpg';
113 $this->utilHelper->convertImage(
114 $this->rootDirectory . $relativePath,
115 $this->rootDirectory . $newFilePath,
◆ $iliasVersion
ilCertificateTemplateDeleteAction::$iliasVersion |
|
private |
◆ $objectHelper
ilCertificateTemplateDeleteAction::$objectHelper |
|
private |
◆ $rootDirectory
ilCertificateTemplateDeleteAction::$rootDirectory |
|
private |
◆ $templateRepository
ilCertificateTemplateDeleteAction::$templateRepository |
|
private |
◆ $utilHelper
ilCertificateTemplateDeleteAction::$utilHelper |
|
private |
The documentation for this class was generated from the following file: