Skip to content

Commit

Permalink
Allow filtering by calendars in calendars/export.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Nov 5, 2013
1 parent 371edef commit 1ce3215
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions kronolith/lib/Api.php
Expand Up @@ -864,16 +864,18 @@ public function quickAdd($text, $calendar = null)
* Still in wide use)
* activesync (Horde_ActiveSync_Message_Appointment)
* </pre>
* @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();
}
Expand Down

0 comments on commit 1ce3215

Please sign in to comment.