ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
MockACLNode.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Sabre\DAVACL;
4 
5 use Sabre\DAV;
6 
7 class MockACLNode extends DAV\Node implements IACL {
8 
9  public $name;
10  public $acl;
11 
12  function __construct($name, array $acl = []) {
13 
14  $this->name = $name;
15  $this->acl = $acl;
16 
17  }
18 
19  function getName() {
20 
21  return $this->name;
22 
23  }
24 
25  function getOwner() {
26 
27  return null;
28 
29  }
30 
31  function getGroup() {
32 
33  return null;
34 
35  }
36 
37  function getACL() {
38 
39  return $this->acl;
40 
41  }
42 
43  function setACL(array $acl) {
44 
45  $this->acl = $acl;
46 
47  }
48 
50 
51  return null;
52 
53  }
54 
55 }
getName()
Returns the name of the node.
Definition: MockACLNode.php:19
getSupportedPrivilegeSet()
Returns the list of supported privileges for this node.
Definition: MockACLNode.php:49
getGroup()
Returns a group principal.
Definition: MockACLNode.php:31
getOwner()
Returns the owner principal.
Definition: MockACLNode.php:25
ACL-enabled node.
Definition: IACL.php:16
__construct($name, array $acl=[])
Definition: MockACLNode.php:12
setACL(array $acl)
Updates the ACL.
Definition: MockACLNode.php:43
Node class.
Definition: Node.php:14
getACL()
Returns a list of ACE&#39;s for this node.
Definition: MockACLNode.php:37