ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
class.ilCertificateScormTemplateDeleteAction.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2018 ILIAS open source, Extended GPL, see docs/LICENSE */
3
8{
13
17 private $setting;
18
24 {
25 $this->deleteAction = $deleteAction;
26
27 if (null === $setting) {
28 $setting = new ilSetting('scorm');
29 }
30 $this->setting = $setting;
31 }
32
39 public function delete($templateId, $objectId)
40 {
41 $this->deleteAction->delete($templateId, $objectId);
42
43 $this->setting->delete('certificate_' . $objectId);
44 }
45}
An exception for terminatinating execution or to throw for unit testing.
__construct(ilCertificateTemplateDeleteAction $deleteAction, ilSetting $setting=null)
ILIAS Setting Class.