summaryrefslogtreecommitdiff
path: root/plugins/kolab_addressbook/lib
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-10-15 17:10:08 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-10-15 17:10:08 +0000
commiteb21692fc7602de5f66f72951d4677322da74350 (patch)
tree4434056cedca32a805b558291c6472962be88054 /plugins/kolab_addressbook/lib
parent27aac995fd8d929a0231fc8ed2d20612c48f4fb4 (diff)
First scaffolding for the Kolab address book including lib for general access to Kolab backend
git-svn-id: https://svn.roundcube.net/trunk@4097 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'plugins/kolab_addressbook/lib')
-rw-r--r--plugins/kolab_addressbook/lib/rcube_kolab.php32
1 files changed, 32 insertions, 0 deletions
diff --git a/plugins/kolab_addressbook/lib/rcube_kolab.php b/plugins/kolab_addressbook/lib/rcube_kolab.php
new file mode 100644
index 000000000..e3588f8f5
--- /dev/null
+++ b/plugins/kolab_addressbook/lib/rcube_kolab.php
@@ -0,0 +1,32 @@
+<?php
+
+/**
+ * Glue class to handle access to the Kolab data using the Kolab_* classes
+ * from the Horde project.
+ *
+ * @author Thomas Bruederli
+ */
+class rcube_kolab
+{
+ /**
+ * Setup the environment needed by the Kolab_* classes to access Kolab data
+ */
+ public static function setup()
+ {
+ $rcmail = rcmail::get_instance();
+
+ // if we need IMAP access through Roundcube IMAP class
+ // $rcmail->imap_init();
+
+ // get some config settings for the IMAP connection
+ $imap_auth_method = $rcmail->config->get('imap_auth_type', 'check');
+ $imap_delimiter = isset($_SESSION['imap_delimiter']) ? $_SESSION['imap_delimiter'] : $rcmail->config->get('imap_delimiter');
+
+ // this is how we get the current IMAP authentication credentials:
+ // $_SESSION['imap_host'], $_SESSION['username'], $rcmail->decrypt($_SESSION['password']), $_SESSION['imap_port'], $_SESSION['imap_ssl']
+
+
+ }
+
+
+}