ILIAS  trunk Revision v12.0_alpha-1221-g4e438232683
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;
33
37class TopLinkItem extends AbstractChildItem implements
44{
46 use isInterchangeableItemTrait;
48
49 protected bool $is_external_action = false;
50
51 protected string $title = '';
52
53 protected string $action = '';
54
55 public function withTitle(string $title): hasTitle
56 {
57 $clone = clone($this);
58 $clone->title = $title;
59
60 return $clone;
61 }
62
63 public function getTitle(): string
64 {
65 return $this->title;
66 }
67
68 public function withAction(string $action): hasAction
69 {
70 $clone = clone($this);
71 $clone->action = $action;
72
73 return $clone;
74 }
75
76 public function getAction(): string
77 {
78 return $this->action;
79 }
80
84 public function withIsLinkToExternalAction(bool $is_external): hasAction
85 {
86 $clone = clone $this;
87 $clone->is_external_action = $is_external;
88
89 return $clone;
90 }
91
92 public function isLinkWithExternalAction(): bool
93 {
95 }
96}
trait hasSymbolTrait
Trait hasSymbolTrait.