ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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
15{
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}
An exception for terminatinating execution or to throw for unit testing.
The scope of this class is split ilias-conform URI's into components.
Definition: URI.php:18
__construct(array $links, string $text='')
Definition: Footer.php:23
This describes the Footer.
Definition: Footer.php:12
checkArgListElements($which, array &$values, $classes)
Check every element of the list if it is an instance of one of the given classes.
trait ComponentHelper
Provides common functionality for component implementations.
Class ChatMainBarProvider \MainMenu\Provider.
$url