ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
LinkItem.php
Go to the documentation of this file.
2
6
13{
14
18 protected $symbol;
22 protected $title = "";
26 protected $action = "";
27
28
33 {
35 $this->renderer = new LinkItemRenderer();
36 }
37
38
44 public function withAction(string $action) : LinkItem
45 {
46 $clone = clone($this);
47 $clone->action = $action;
48
49 return $clone;
50 }
51
52
56 public function getAction() : string
57 {
58 return $this->action;
59 }
60
61
66 {
67 $clone = clone($this);
68 $clone->symbol = $symbol;
69
70 return $clone;
71 }
72
73
77 public function getSymbol() : \ILIAS\UI\Component\Symbol\Symbol
78 {
79 return $this->symbol;
80 }
81
82
86 public function hasSymbol() : bool
87 {
88 return ($this->symbol instanceof Symbol);
89 }
90
91
95 public function withTitle(string $title) : hasTitle
96 {
97 $clone = clone($this);
98 $clone->title = $title;
99
100 return $clone;
101 }
102
103
107 public function getTitle() : string
108 {
109 return $this->title;
110 }
111}
An exception for terminatinating execution or to throw for unit testing.
__construct(IdentificationInterface $provider_identification)
@inheritDoc
Definition: LinkItem.php:32
A component is the most general form of an entity in the UI.
Definition: Component.php:14
This describes a symbol.
Definition: Symbol.php:12
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
Class ChatMainBarProvider \MainMenu\Provider.
Class Factory.