ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
TopLinkItem.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
32 
38 {
40  use hasSymbolTrait;
42 
46  protected $is_external_action = false;
47 
51  protected $title = '';
52 
56  protected $action = '';
57 
62  public function withTitle(string $title) : hasTitle
63  {
64  $clone = clone($this);
65  $clone->title = $title;
66 
67  return $clone;
68  }
69 
73  public function getTitle() : string
74  {
75  return $this->title;
76  }
77 
82  public function withAction(string $action) : hasAction
83  {
84  $clone = clone($this);
85  $clone->action = $action;
86 
87  return $clone;
88  }
89 
93  public function getAction() : string
94  {
95  return $this->action;
96  }
97 
102  public function withIsLinkToExternalAction(bool $is_external) : hasAction
103  {
104  $clone = clone $this;
105  $clone->is_external_action = $is_external;
106 
107  return $clone;
108  }
109 
113  public function isLinkWithExternalAction() : bool
114  {
116  }
117 }
Interface hasSymbol Methods for Entries with Symbols.
Definition: hasSymbol.php:32
trait hasSymbolTrait
Trait hasSymbolTrait.