◆ __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.
73 {
74 $template = $this->templateRepository->fetchCurrentlyUsedCertificate($objectId);
75
76 $this->templateRepository->deleteTemplate($templateTemplateId, $objectId);
77
78 $version = (int) $template->getVersion();
80 $objectId,
81 $this->objectHelper->lookupType($objectId),
82 '',
83 hash('sha256', ''),
84 '',
85 $version + 1,
86 $this->iliasVersion,
87 time(),
88 false,
89 '',
90 ''
91 );
92
93 $this->templateRepository->save($certificateTemplate);
94 }
◆ $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: