[Pkg-owncloud-commits] [php-sabredav] 06/66: Plugin info for the locks plugin.

David Prévot taffit at moszumanska.debian.org
Wed May 27 13:56:43 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to tag 3.0.0-alpha1
in repository php-sabredav.

commit ea2c3b40e93a859882e92d7ccb569cdcc5063849
Author: Evert Pot <me at evertpot.com>
Date:   Mon Apr 13 15:54:53 2015 -0400

    Plugin info for the locks plugin.
---
 lib/DAV/Locks/Plugin.php | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/lib/DAV/Locks/Plugin.php b/lib/DAV/Locks/Plugin.php
index e1e16db..4a194aa 100644
--- a/lib/DAV/Locks/Plugin.php
+++ b/lib/DAV/Locks/Plugin.php
@@ -565,5 +565,25 @@ class Plugin extends DAV\ServerPlugin {
 
     }
 
+    /**
+     * Returns a bunch of meta-data about the plugin.
+     *
+     * Providing this information is optional, and is mainly displayed by the
+     * Browser plugin.
+     *
+     * The description key in the returned array may contain html and will not
+     * be sanitized.
+     *
+     * @return array
+     */
+    function getPluginInfo() {
+
+        return [
+            'name'        => $this->getPluginName(),
+            'description' => 'The locks plugin turns this server into a class-2 WebDAV server and adds support for LOCK and UNLOCK',
+            'link'        => 'http://sabre.io/dav/locks/',
+        ];
+
+    }
 
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabredav.git



More information about the Pkg-owncloud-commits mailing list