ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
TopLinkItem.php
Go to the documentation of this file.
2
7
14{
15
19 protected $is_external_action = false;
23 protected $title = '';
27 protected $action = '';
28
29
35 public function withTitle(string $title) : hasTitle
36 {
37 $clone = clone($this);
38 $clone->title = $title;
39
40 return $clone;
41 }
42
43
47 public function getTitle() : string
48 {
49 return $this->title;
50 }
51
52
58 public function withAction(string $action) : hasAction
59 {
60 $clone = clone($this);
61 $clone->action = $action;
62
63 return $clone;
64 }
65
66
70 public function getAction() : string
71 {
72 return $this->action;
73 }
74
75
81 public function withIsLinkToExternalAction(bool $is_external) : hasAction
82 {
83 $clone = clone $this;
84 $clone->is_external_action = $is_external;
85
86 return $clone;
87 }
88
89
93 public function isLinkWithExternalAction() : bool
94 {
96 }
97}
An exception for terminatinating execution or to throw for unit testing.