exporting implemented

This commit is contained in:
Christoph Haas 2016-06-21 11:25:48 +02:00
parent 3f3f624b66
commit c0debc99fc

View File

@ -258,6 +258,14 @@ class CalendarModule extends Module
}
$vcalendar = new VObject\Component\VCalendar();
// Add static stuff to vcalendar
$vcalendar->add('METHOD', 'PUBLISH');
$vcalendar->add('X-WR-CALDESC', 'Exported Zarafa Calendar');
$vcalendar->add('X-WR-TIMEZONE', date_default_timezone_get());
// TODO: add VTIMEZONE object to ical.
for ($index = 0, $count = count($records); $index < $count; $index++) {
$message = mapi_msgstore_openentry($store, hex2bin($records[$index]));