ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
ScormAicc.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace ILIAS;
22 
23 class ScormAicc implements Component\Component
24 {
25  public function init(
26  array | \ArrayAccess &$define,
27  array | \ArrayAccess &$implement,
28  array | \ArrayAccess &$use,
29  array | \ArrayAccess &$contribute,
30  array | \ArrayAccess &$seek,
31  array | \ArrayAccess &$provide,
32  array | \ArrayAccess &$pull,
33  array | \ArrayAccess &$internal,
34  ): void {
35  $contribute[Component\Resource\PublicAsset::class] = static fn() => new class () implements Component\Resource\PublicAsset {
36  public function getSource(): string
37  {
38  return "components/ILIAS/ScormAicc/scripts";
39  }
40  public function getTarget(): string
41  {
42  return "components/ILIAS/ScormAicc/scripts";
43  }
44  };
45 
46  $contribute[Component\Resource\PublicAsset::class] = static fn() => new class () implements Component\Resource\PublicAsset {
47  public function getSource(): string
48  {
49  return "components/ILIAS/ScormAicc/templates/default/debug.html";
50  }
51  public function getTarget(): string
52  {
53  return "components/ILIAS/ScormAicc/templates/default/debug.html";
54  }
55  };
56 
57  $contribute[Component\Resource\PublicAsset::class] = static fn() => new class () implements Component\Resource\PublicAsset {
58  public function getSource(): string
59  {
60  return "components/ILIAS/ScormAicc/templates/default/dummy.html";
61  }
62  public function getTarget(): string
63  {
64  return "components/ILIAS/ScormAicc/templates/default/dummy.html";
65  }
66  };
67  }
68 }
Interface Observer Contains several chained tasks and infos about them.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
init(array|\ArrayAccess &$define, array|\ArrayAccess &$implement, array|\ArrayAccess &$use, array|\ArrayAccess &$contribute, array|\ArrayAccess &$seek, array|\ArrayAccess &$provide, array|\ArrayAccess &$pull, array|\ArrayAccess &$internal,)
Definition: ScormAicc.php:25
An public asset is a file or folder that should be served via the web.
Definition: PublicAsset.php:26