[Pkg-owncloud-commits] [php-sabredav] 04/12: provide information about vcf plugin

David Prévot taffit at moszumanska.debian.org
Mon Jun 1 22:42:48 UTC 2015


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

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

commit 120d016cbe8213ba665a2918847fcf34d489875b
Author: Markus Engelbrecht <github at enbre.com>
Date:   Fri May 29 16:43:15 2015 +0200

    provide information about vcf plugin
---
 lib/CardDAV/VCFExportPlugin.php | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/lib/CardDAV/VCFExportPlugin.php b/lib/CardDAV/VCFExportPlugin.php
index fe5ef0e..6f597f7 100644
--- a/lib/CardDAV/VCFExportPlugin.php
+++ b/lib/CardDAV/VCFExportPlugin.php
@@ -107,4 +107,39 @@ class VCFExportPlugin extends DAV\ServerPlugin {
 
     }
 
+    /**
+     * Returns a plugin name.
+     *
+     * Using this name other plugins will be able to access other plugins
+     * using \Sabre\DAV\Server::getPlugin
+     *
+     * @return string
+     */
+    function getPluginName() {
+
+        return 'vcf-export';
+
+    }
+
+    /**
+     * 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' => 'Adds the ability to export CardDAV addressbooks as a single vCard file.',
+            'link'        => 'http://sabre.io/dav/vcf-export-plugin/',
+        ];
+
+    }
+
 }

-- 
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