ILIAS  trunk Revision v11.0_alpha-1761-g6dbbfa7b760
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
TopLinkItem.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
31 
35 class TopLinkItem extends AbstractChildItem implements
36  hasTitle,
37  hasAction,
38  isTopItem,
39  hasSymbol,
41 {
42  use hasSymbolTrait;
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.