]> git.mxchange.org Git - friendica-addons.git/blobdiff - dav/SabreDAV/tests/Sabre/DAVACL/MockACLNode.php
Initial Release of the calendar plugin
[friendica-addons.git] / dav / SabreDAV / tests / Sabre / DAVACL / MockACLNode.php
diff --git a/dav/SabreDAV/tests/Sabre/DAVACL/MockACLNode.php b/dav/SabreDAV/tests/Sabre/DAVACL/MockACLNode.php
new file mode 100644 (file)
index 0000000..15fd72a
--- /dev/null
@@ -0,0 +1,51 @@
+<?php
+
+class Sabre_DAVACL_MockACLNode extends Sabre_DAV_Node implements Sabre_DAVACL_IACL {
+
+    public $name;
+    public $acl;
+
+    function __construct($name, array $acl = array()) {
+
+        $this->name = $name;
+        $this->acl = $acl;
+
+    }
+
+    function getName() {
+
+        return $this->name;
+
+    }
+
+    function getOwner() {
+
+        return null;
+
+    }
+
+    function getGroup() {
+
+        return null;
+
+    }
+
+    function getACL() {
+
+        return $this->acl;
+
+    }
+
+    function setACL(array $acl) {
+
+        $this->acl = $acl;
+
+    }
+
+    function getSupportedPrivilegeSet() {
+
+        return null;
+
+    }
+
+}