<?php
+use Sabre\VObject;
+
/**
* ICS Exporter
*
- * This plugin adds the ability to export entire calendars as .ics files.
+ * This addon adds the ability to export entire calendars as .ics files.
* This is useful for clients that don't support CalDAV yet. They often do
* support ics files.
*
private $server;
/**
- * Initializes the plugin and registers event handlers
+ * Initializes the addon and registers event handlers
*
* @param Sabre_DAV_Server $server
* @return void
*/
public function generateICS(array $nodes) {
- $calendar = new Sabre_VObject_Component('vcalendar');
+ $calendar = new VObject\Component('vcalendar');
$calendar->version = '2.0';
if (Sabre_DAV_Server::$exposeVersion) {
$calendar->prodid = '-//SabreDAV//SabreDAV ' . Sabre_DAV_Version::VERSION . '//EN';
}
$nodeData = $node[200]['{' . Sabre_CalDAV_Plugin::NS_CALDAV . '}calendar-data'];
- $nodeComp = Sabre_VObject_Reader::read($nodeData);
+ $nodeComp = VObject\Reader::read($nodeData);
foreach($nodeComp->children() as $child) {