ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
LinkItem.php
Go to the documentation of this file.
2 
6 
13 {
14 
18  protected $symbol;
22  protected $title = "";
26  protected $action = "";
27 
28 
33  {
34  parent::__construct($provider_identification);
35  $this->renderer = new LinkItemRenderer();
36  }
37 
38 
44  public function withAction(string $action) : LinkItem
45  {
46  $clone = clone($this);
47  $clone->action = $action;
48 
49  return $clone;
50  }
51 
52 
56  public function getAction() : string
57  {
58  return $this->action;
59  }
60 
61 
65  public function withSymbol(Symbol $symbol) : hasSymbol
66  {
67  $clone = clone($this);
68  $clone->symbol = $symbol;
69 
70  return $clone;
71  }
72 
73 
77  public function getSymbol() : \ILIAS\UI\Component\Symbol\Symbol
78  {
79  return $this->symbol;
80  }
81 
82 
86  public function hasSymbol() : bool
87  {
88  return ($this->symbol instanceof Symbol);
89  }
90 
91 
95  public function withTitle(string $title) : hasTitle
96  {
97  $clone = clone($this);
98  $clone->title = $title;
99 
100  return $clone;
101  }
102 
103 
107  public function getTitle() : string
108  {
109  return $this->title;
110  }
111 }
Class Factory.
This describes a symbol.
Definition: Symbol.php:11
Class ChatMainBarProvider .
__construct(IdentificationInterface $provider_identification)
Definition: LinkItem.php:32
__construct(Container $dic, ilPlugin $plugin)