ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
TopLinkItem.php
Go to the documentation of this file.
2
9use ILIAS\GlobalScreen\Scope\MainMenu\Factory\isInterchangeableItemTrait;
12
18{
21 use isInterchangeableItemTrait;
22
26 protected $is_external_action = false;
30 protected $title = '';
34 protected $action = '';
35
40 public function withTitle(string $title) : hasTitle
41 {
42 $clone = clone($this);
43 $clone->title = $title;
44
45 return $clone;
46 }
47
51 public function getTitle() : string
52 {
53 return $this->title;
54 }
55
60 public function withAction(string $action) : hasAction
61 {
62 $clone = clone($this);
63 $clone->action = $action;
64
65 return $clone;
66 }
67
71 public function getAction() : string
72 {
73 return $this->action;
74 }
75
80 public function withIsLinkToExternalAction(bool $is_external) : hasAction
81 {
82 $clone = clone $this;
83 $clone->is_external_action = $is_external;
84
85 return $clone;
86 }
87
91 public function isLinkWithExternalAction() : bool
92 {
94 }
95}
An exception for terminatinating execution or to throw for unit testing.
Interface hasSymbol Methods for Entries with Symbols.
Definition: hasSymbol.php:12
trait hasSymbolTrait
Trait hasSymbolTrait.