summaryrefslogtreecommitdiff
path: root/plugins/libcalendaring/libcalendaring.php
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2013-07-18 10:38:14 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2013-07-18 10:38:14 (GMT)
commit18f9fa5c860f04622497fb822c4ca8d8022fe6f7 (patch)
treeffdd49080124549736d22e5604290907218eff0b /plugins/libcalendaring/libcalendaring.php
parentf030275eb316b307a4e8f28ab3793d2df46bbe90 (diff)
downloadroundcubemail-plugins-kolab-18f9fa5c860f04622497fb822c4ca8d8022fe6f7.tar.gz
Move iCal parsing/writing classes to libcalendaring
Diffstat (limited to 'plugins/libcalendaring/libcalendaring.php')
-rw-r--r--plugins/libcalendaring/libcalendaring.php13
1 files changed, 11 insertions, 2 deletions
diff --git a/plugins/libcalendaring/libcalendaring.php b/plugins/libcalendaring/libcalendaring.php
index 5185f17..4beef89 100644
--- a/plugins/libcalendaring/libcalendaring.php
+++ b/plugins/libcalendaring/libcalendaring.php
@@ -7,7 +7,7 @@
* - alarms display and dismissal
* - attachment handling
* - recurrence computation and UI elements (TODO)
- * - ical parsing and exporting (TODO)
+ * - ical parsing and exporting
*
* @version @package_version@
* @author Thomas Bruederli <bruederli@kolabsys.com>
@@ -97,7 +97,16 @@ class libcalendaring extends rcube_plugin
}
}
-
+ /**
+ * Load iCalendar functions
+ */
+ public static function get_ical()
+ {
+ $self = self::get_instance();
+ require_once($self->home . '/libvcalendar.php');
+ return new libvcalendar($self->timezone);
+ }
+
/**
* Shift dates into user's current timezone
*