ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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 {
12  private $deleteAction;
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 }
__construct(ilCertificateTemplateDeleteAction $deleteAction, ilSetting $setting=null)