ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
TopLinkItem.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
29use ILIAS\GlobalScreen\Scope\MainMenu\Factory\isInterchangeableItemTrait;
31
35class TopLinkItem extends AbstractChildItem implements
41{
43 use isInterchangeableItemTrait;
44
45 protected bool $is_external_action = false;
46
47 protected string $title = '';
48
49 protected string $action = '';
50
55 public function withTitle(string $title): hasTitle
56 {
57 $clone = clone($this);
58 $clone->title = $title;
59
60 return $clone;
61 }
62
66 public function getTitle(): string
67 {
68 return $this->title;
69 }
70
75 public function withAction(string $action): hasAction
76 {
77 $clone = clone($this);
78 $clone->action = $action;
79
80 return $clone;
81 }
82
86 public function getAction(): string
87 {
88 return $this->action;
89 }
90
95 public function withIsLinkToExternalAction(bool $is_external): hasAction
96 {
97 $clone = clone $this;
98 $clone->is_external_action = $is_external;
99
100 return $clone;
101 }
102
106 public function isLinkWithExternalAction(): bool
107 {
109 }
110}
trait hasSymbolTrait
Trait hasSymbolTrait.