ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
Footer.php
Go to the documentation of this file.
1 <?php
2 
3 /* Copyright (c) 2019 Nils Haagen <nils.haagen@concepts-and-training.de> Extended GPL, see docs/LICENSE */
4 
6 
10 
14 class Footer implements MainControls\Footer
15 {
16  use ComponentHelper;
17 
21  protected $permanent_url = "";
22 
23  public function __construct(array $links, string $text = '')
24  {
25  $types = [\ILIAS\UI\Component\Link\Link::class];
26  $this->checkArgListElements('links', $links, $types);
27  $this->links = $links;
28  $this->text = $text;
29  }
30 
31  public function getLinks() : array
32  {
33  return $this->links;
34  }
35 
36  public function getText() : string
37  {
38  return $this->text;
39  }
40 
41  public function withPermanentURL(\ILIAS\Data\URI $url) : MainControls\Footer
42  {
43  $clone = clone $this;
44  $clone->permanent_url = $url;
45  return $clone;
46  }
47 
48  public function getPermanentURL()
49  {
50  return $this->permanent_url;
51  }
52 }
Class ChatMainBarProvider .
trait ComponentHelper
Provides common functionality for component implementations.
The scope of this class is split ilias-conform URI&#39;s into components.
Definition: URI.php:17
__construct(array $links, string $text='')
Definition: Footer.php:23
$url
checkArgListElements($which, array &$values, $classes)
Check every element of the list if it is an instance of one of the given classes. ...
This describes the Footer.
Definition: Footer.php:11