ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Legacy.php
Go to the documentation of this file.
1 <?php
2 
3 /* Copyright (c) 2016 Timon Amstutz <timon.amstutz@ilub.unibe.ch> Extended GPL, see docs/LICENSE */
4 
6 
7 use ILIAS\UI\Component as C;
9 
14 class Legacy implements C\Legacy\Legacy
15 {
16  use ComponentHelper;
17 
21  private $content;
22 
23 
28  public function __construct($content)
29  {
30  $this->checkStringArg("content", $content);
31 
32  $this->content = $content;
33  }
34 
38  public function getContent()
39  {
40  return $this->content;
41  }
42 }
trait ComponentHelper
Provides common functionality for component implementations.
checkStringArg($which, $value)
Throw an InvalidArgumentException if $value is no string.
__construct($content)
Legacy constructor.
Definition: Legacy.php:28