ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
TopLinkItem.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
33 
37 class TopLinkItem extends AbstractChildItem implements
38  hasTitle,
39  hasAction,
40  isTopItem,
41  hasSymbol,
43 {
44  use hasSymbolTrait;
46 
47  protected bool $is_external_action = false;
48 
49  protected string $title = '';
50 
51  protected string $action = '';
52 
57  public function withTitle(string $title): hasTitle
58  {
59  $clone = clone($this);
60  $clone->title = $title;
61 
62  return $clone;
63  }
64 
68  public function getTitle(): string
69  {
70  return $this->title;
71  }
72 
77  public function withAction(string $action): hasAction
78  {
79  $clone = clone($this);
80  $clone->action = $action;
81 
82  return $clone;
83  }
84 
88  public function getAction(): string
89  {
90  return $this->action;
91  }
92 
97  public function withIsLinkToExternalAction(bool $is_external): hasAction
98  {
99  $clone = clone $this;
100  $clone->is_external_action = $is_external;
101 
102  return $clone;
103  }
104 
108  public function isLinkWithExternalAction(): bool
109  {
111  }
112 }
trait hasSymbolTrait
Trait hasSymbolTrait.