ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
Capability.php
Go to the documentation of this file.
1 <?php
2 
22 namespace ILIAS\File\Capabilities;
23 
24 use ILIAS\Data\URI;
25 
27 {
28  private bool $unlocked = false;
29  private ?URI $uri = null;
33  private array $permissions = [];
34 
35  public function __construct(
36  private Capabilities $capability,
37  Permissions ... $permissions
38  ) {
39  $this->permissions = $permissions;
40  }
41 
42  public function withUnlocked(bool $unlocked): Capability
43  {
44  $this->unlocked = $unlocked;
45  return $this;
46  }
47 
48  public function withURI(?URI $uri): Capability
49  {
50  $this->uri = $uri;
51  return $this;
52  }
53 
54  public function isUnlocked(): bool
55  {
56  return $this->unlocked;
57  }
58 
59  public function getUri(): ?URI
60  {
61  return $this->uri;
62  }
63 
64  public function getCapability(): Capabilities
65  {
66  return $this->capability;
67  }
68 
69  public function getPermissions(): array
70  {
71  return $this->permissions;
72  }
73 
74 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
__construct(private Capabilities $capability, Permissions ... $permissions)
Definition: Capability.php:35