]> git.mxchange.org Git - friendica-addons.git/blobdiff - dav/SabreDAV/lib/Sabre/CalDAV/ICSExportPlugin.php
Update strings
[friendica-addons.git] / dav / SabreDAV / lib / Sabre / CalDAV / ICSExportPlugin.php
index ec42b406b2f172c7289a00ba7975fc35f59fa877..7d989a951dc684a0831136d8e59cde86d0aff1c6 100644 (file)
@@ -1,9 +1,11 @@
 <?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.
  *
@@ -23,7 +25,7 @@ class Sabre_CalDAV_ICSExportPlugin extends Sabre_DAV_ServerPlugin {
     private $server;
 
     /**
-     * Initializes the plugin and registers event handlers
+     * Initializes the addon and registers event handlers
      *
      * @param Sabre_DAV_Server $server
      * @return void
@@ -82,7 +84,7 @@ class Sabre_CalDAV_ICSExportPlugin extends Sabre_DAV_ServerPlugin {
      */
     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';
@@ -103,7 +105,7 @@ class Sabre_CalDAV_ICSExportPlugin extends Sabre_DAV_ServerPlugin {
             }
             $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) {