summaryrefslogtreecommitdiffstats
path: root/3dparty/Sabre/DAV/ILockable.php
diff options
context:
space:
mode:
Diffstat (limited to '3dparty/Sabre/DAV/ILockable.php')
-rw-r--r--3dparty/Sabre/DAV/ILockable.php38
1 files changed, 38 insertions, 0 deletions
diff --git a/3dparty/Sabre/DAV/ILockable.php b/3dparty/Sabre/DAV/ILockable.php
new file mode 100644
index 00000000000..f9fb3a70251
--- /dev/null
+++ b/3dparty/Sabre/DAV/ILockable.php
@@ -0,0 +1,38 @@
+<?php
+
+/**
+ * Implement this class to support locking
+ *
+ * @package Sabre
+ * @subpackage DAV
+ * @copyright Copyright (C) 2007-2011 Rooftop Solutions. All rights reserved.
+ * @author Evert Pot (http://www.rooftopsolutions.nl/)
+ * @license http://code.google.com/p/sabredav/wiki/License Modified BSD License
+ */
+interface Sabre_DAV_ILockable extends Sabre_DAV_INode {
+
+ /**
+ * Returns an array with locks currently on the node
+ *
+ * @return Sabre_DAV_Locks_LockInfo[]
+ */
+ function getLocks();
+
+ /**
+ * Creates a new lock on the file.
+ *
+ * @param Sabre_DAV_Locks_LockInfo $lockInfo The lock information
+ * @return void
+ */
+ function lock(Sabre_DAV_Locks_LockInfo $lockInfo);
+
+ /**
+ * Unlocks a file
+ *
+ * @param Sabre_DAV_Locks_LockInfo $lockInfo The lock information
+ * @return void
+ */
+ function unlock(Sabre_DAV_Locks_LockInfo $lockInfo);
+
+}
+