From 1ce32155134bdcb36bc1f63f740b881aec2b6819 Mon Sep 17 00:00:00 2001 From: Michael J Rubinsky Date: Tue, 5 Nov 2013 12:45:11 -0500 Subject: [PATCH] Allow filtering by calendars in calendars/export. --- kronolith/lib/Api.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/kronolith/lib/Api.php b/kronolith/lib/Api.php index 14386aa0567..d65a29a0bb0 100644 --- a/kronolith/lib/Api.php +++ b/kronolith/lib/Api.php @@ -864,16 +864,18 @@ public function quickAdd($text, $calendar = null) * Still in wide use) * activesync (Horde_ActiveSync_Message_Appointment) * - * @param array $optinos Any additional options to be passed to the + * @param array $options Any additional options to be passed to the * exporter. + * @param array $calendars Require event to be in these calendars. + * @since 4.2.0 * * @return string The requested data. * @throws Kronolith_Exception * @throws Horde_Exception_NotFound */ - public function export($uid, $contentType, array $options = array()) + public function export($uid, $contentType, array $options = array(), array $calendars = null) { - $event = Kronolith::getDriver()->getByUID($uid); + $event = Kronolith::getDriver()->getByUID($uid, $calendars); if (!$event->hasPermission(Horde_Perms::READ)) { throw new Horde_Exception_PermissionDenied(); }