summaryrefslogtreecommitdiff
path: root/lib/Kolab/FreeBusy/Directory.php
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2013-01-24 20:52:10 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2013-01-24 20:52:10 (GMT)
commitaae8de625b88efdda5c587e30ac46929ab906609 (patch)
treed91d0968d874abddde01ab8879cff89f4f1b267a /lib/Kolab/FreeBusy/Directory.php
parenta0eb1a853418b886d105169bec65a8e01c164119 (diff)
downloadkolab-freebusy-aae8de625b88efdda5c587e30ac46929ab906609.tar.gz
Implement an Exchange 2010 format converter using the Sabre VObject lib and timezone mappings from unicode.org
Diffstat (limited to 'lib/Kolab/FreeBusy/Directory.php')
-rw-r--r--lib/Kolab/FreeBusy/Directory.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/Kolab/FreeBusy/Directory.php b/lib/Kolab/FreeBusy/Directory.php
index 67e6d8d..97fee75 100644
--- a/lib/Kolab/FreeBusy/Directory.php
+++ b/lib/Kolab/FreeBusy/Directory.php
@@ -52,8 +52,14 @@ abstract class Directory
if ($user = $this->resolve($user)) {
$fbsource = $this->config['fbsource'];
if ($source = Source::Factory($fbsource)) {
- // foward request to Source instance
- return $source->getFreeBusyData($user, $extended);
+ // forward request to Source instance
+ if ($data = $source->getFreeBusyData($user, $extended)) {
+ // send data through the according format converter
+ $converter = Format::factory($this->config['format']);
+ $data = $converter->toVCalendar($data);
+ }
+
+ return $data;
}
}