ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Tab.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24
29class Tab
30{
31 private string $permission = 'visible';
32
33 public function __construct(
34 private string $id,
35 private string $language_key,
36 private URI $target,
37 private string $handling_class,
38 private ?Tab $parent = null,
39 ) {
40 }
41
42 public function getId(): string
43 {
44 return $this->id;
45 }
46
47 public function getHandlingClass(): string
48 {
49 return $this->handling_class;
50 }
51
52 public function getLanguageKey(): string
53 {
54 return $this->language_key;
55 }
56
57 public function getTarget(): URI
58 {
59 return $this->target;
60 }
61
62 public function getParent(): ?Tab
63 {
64 return $this->parent;
65 }
66
67 public function getPermission(): string
68 {
69 return $this->permission;
70 }
71
72 public function withPermission(string $permission): self
73 {
74 $this->permission = $permission;
75 return $this;
76 }
77
78 public function withParent(Tab $parent): self
79 {
80 $this->parent = $parent;
81 return $this;
82 }
83
84}
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
The scope of this class is split ilias-conform URI's into components.
Definition: URI.php:35
withPermission(string $permission)
Definition: Tab.php:72
withParent(Tab $parent)
Definition: Tab.php:78
__construct(private string $id, private string $language_key, private URI $target, private string $handling_class, private ?Tab $parent=null,)
Definition: Tab.php:33