summaryrefslogtreecommitdiff
path: root/plugins/kolab_addressbook/lib
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-11-21 16:47:51 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-11-21 16:47:51 +0000
commitc1bccb67c48ffb82e3e836a8f10e8c0dfb7430bc (patch)
treeb0d9bf8117baf3ebb53e3fab4ef6936ecb1841e7 /plugins/kolab_addressbook/lib
parent9f64e4feacdc8cbbe2dd6711c946cb173c1f8a93 (diff)
Map more fields of the Kolab contact format (still read-only)
git-svn-id: https://svn.roundcube.net/trunk@4244 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'plugins/kolab_addressbook/lib')
-rw-r--r--plugins/kolab_addressbook/lib/rcube_kolab.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/plugins/kolab_addressbook/lib/rcube_kolab.php b/plugins/kolab_addressbook/lib/rcube_kolab.php
index 985691a51..94511e55d 100644
--- a/plugins/kolab_addressbook/lib/rcube_kolab.php
+++ b/plugins/kolab_addressbook/lib/rcube_kolab.php
@@ -1,6 +1,7 @@
<?php
require_once 'Horde/Kolab/Storage/List.php';
+require_once 'Horde/Kolab/Format.php';
require_once 'Horde/Auth.php';
require_once 'Horde/Auth/kolab.php';
require_once 'Horde/Perms.php';
@@ -48,6 +49,19 @@ class rcube_kolab
Auth::setCredential('password', $pwd);
}
}
+
+
+ /**
+ * Get instance of a Kolab (XML) format object
+ *
+ * @param string Data type (contact,event,task,note)
+ * @return object Horde_Kolab_Format_XML The format object
+ */
+ public static function get_format($type)
+ {
+ self::setup();
+ return Horde_Kolab_Format::factory('XML', $type);
+ }
/**
* Get a list of storage folders for the given data type