ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
Legacy.php
Go to the documentation of this file.
1 <?php
2 
3 /* Copyright (c) 2018 Nils Haagen <nils.haagen@concepts-and-training.de> Extended GPL, see docs/LICENSE */
4 
6 
12 
16 class Legacy extends Slate implements ISlate\Legacy
17 {
21  protected $contents = [];
22 
23  public function __construct(
25  string $name,
27  ILegacy $content
28  ) {
29  parent::__construct($signal_generator, $name, $symbol);
30  $this->contents = [$content];
31  }
32 
33  public function getContents() : array
34  {
35  return $this->contents;
36  }
37 
38  public function withMappedSubNodes(callable $f)
39  {
40  return $this;
41  }
42 }
This describes the Legacy-Slate.
Definition: Legacy.php:10
This describes a symbol.
Definition: Symbol.php:11
__construct(Container $dic, ilPlugin $plugin)
__construct(SignalGeneratorInterface $signal_generator, string $name, Symbol $symbol, ILegacy $content)
Definition: Legacy.php:23