ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
MockACLNode.php
Go to the documentation of this file.
1<?php
2
3namespace Sabre\DAVACL;
4
5use Sabre\DAV;
6
7class 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}
An exception for terminatinating execution or to throw for unit testing.
getOwner()
Returns the owner principal.
Definition: MockACLNode.php:25
getACL()
Returns a list of ACE's for this node.
Definition: MockACLNode.php:37
setACL(array $acl)
Updates the ACL.
Definition: MockACLNode.php:43
getSupportedPrivilegeSet()
Returns the list of supported privileges for this node.
Definition: MockACLNode.php:49
getName()
Returns the name of the node.
Definition: MockACLNode.php:19
getGroup()
Returns a group principal.
Definition: MockACLNode.php:31
__construct($name, array $acl=[])
Definition: MockACLNode.php:12
Node class.
Definition: Node.php:14
ACL-enabled node.
Definition: IACL.php:16