ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
Bulky.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
5/* Copyright (c) 2019 Nils Haagen <nils.haagen@concepts-and-training.de> Extended GPL, see docs/LICENSE */
6
8
11
12class Bulky extends Link implements C\Link\Bulky
13{
15
19 protected $label;
20
24 protected $symbol;
25
26 public function __construct(C\Symbol\Symbol $symbol, string $label, \ILIAS\Data\URI $target)
27 {
28 $action = $target->getBaseURI();
29 if ($target->getQuery()) {
30 $action .= '?' . $target->getQuery();
31 }
33 $this->label = $label;
34 $this->symbol = $symbol;
35 }
36
40 public function getLabel() : string
41 {
42 return $this->label;
43 }
44
48 public function getSymbol() : C\Symbol\Symbol
49 {
50 return $this->symbol;
51 }
52}
An exception for terminatinating execution or to throw for unit testing.
This describes a symbol.
Definition: Symbol.php:12
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.
Class ChatMainBarProvider \MainMenu\Provider.