ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
Legacy.php
Go to the documentation of this file.
1 <?php
2 
3 /* Copyright (c) 2019 Jesús López <lopez@leifos.com> Extended GPL, see docs/LICENSE */
4 
6 
7 use ILIAS\UI\Component as C;
8 
12 class Legacy extends Secondary implements C\Panel\Secondary\Legacy
13 {
14 
18  protected $title;
19 
23  protected $legacy;
24 
25  public function __construct(string $title, C\Legacy\Legacy $legacy)
26  {
27  $this->checkStringArg("title", $title);
28 
29  $this->title = $title;
30  $this->legacy = $legacy;
31  }
32 
36  public function getLegacyComponent() : C\Legacy\Legacy
37  {
38  return $this->legacy;
39  }
40 }
checkStringArg($which, $value)
Throw an InvalidArgumentException if $value is no string.
__construct(string $title, C\Legacy\Legacy $legacy)
Definition: Legacy.php:25
legacy()
Definition: legacy.php:3