ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
Link.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
22 
23 use ILIAS\UI\Component as C;
25 
29 abstract class Link implements C\Link\Link
30 {
31  use ComponentHelper;
32 
33  protected string $action;
34  protected ?bool $open_in_new_viewport = null;
35 
36  public function __construct(string $action)
37  {
38  $this->action = $action;
39  }
40 
44  public function getAction(): string
45  {
46  return $this->action;
47  }
48 
52  public function withOpenInNewViewport(bool $open_in_new_viewport): C\Link\Link
53  {
54  $clone = clone $this;
55  $clone->open_in_new_viewport = $open_in_new_viewport;
56  return $clone;
57  }
58 
62  public function getOpenInNewViewport(): ?bool
63  {
65  }
66 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...