ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Capability.php
Go to the documentation of this file.
1<?php
2
24
26
28{
29 private bool $unlocked = false;
30 private ?URI $uri = null;
34 private array $permissions = [];
35
36 public function __construct(
37 private Capabilities $capability,
39 ) {
40 $this->permissions = $permissions;
41 }
42
43 public function withUnlocked(bool $unlocked): Capability
44 {
45 $this->unlocked = $unlocked;
46 return $this;
47 }
48
49 public function withURI(?URI $uri): Capability
50 {
51 $this->uri = $uri;
52 return $this;
53 }
54
55 public function isUnlocked(): bool
56 {
57 return $this->unlocked;
58 }
59
60 public function getUri(): ?URI
61 {
62 return $this->uri;
63 }
64
65 public function getCapability(): Capabilities
66 {
67 return $this->capability;
68 }
69
70 public function getPermissions(): array
71 {
72 return $this->permissions;
73 }
74
75}
The scope of this class is split ilias-conform URI's into components.
Definition: URI.php:35
__construct(private Capabilities $capability, Permissions ... $permissions)
Definition: Capability.php:36
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...