ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
Legacy.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
22 
28 
32 class Legacy extends Slate implements ISlate\Legacy
33 {
37  protected array $contents = [];
38 
39  public function __construct(
41  string $name,
43  ILegacy $content
44  ) {
45  parent::__construct($signal_generator, $name, $symbol);
46  $this->contents = [$content];
47  }
48 
52  public function getContents(): array
53  {
54  return $this->contents;
55  }
56 
57  public function withMappedSubNodes(callable $f): ISlate\Legacy
58  {
59  return $this;
60  }
61 }
This describes the Legacy-Slate.
Definition: Legacy.php:26
This describes a symbol.
Definition: Symbol.php:29
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Combined.php:21
__construct(Container $dic, ilPlugin $plugin)
__construct(SignalGeneratorInterface $signal_generator, string $name, Symbol $symbol, ILegacy $content)
Definition: Legacy.php:39
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Combined.php:20