From f167e22ae048f1ff5a1cf83f3bbca32f10dc059e Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Wed, 3 Feb 2010 18:21:47 -0500 Subject: [PATCH] Allow indicating if we want remote/listTimeObject events from calendar/listEvents --- kronolith/lib/Api.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/kronolith/lib/Api.php b/kronolith/lib/Api.php index 3522a9b4f..8dfacf9e6 100644 --- a/kronolith/lib/Api.php +++ b/kronolith/lib/Api.php @@ -1034,12 +1034,14 @@ class Kronolith_Api extends Horde_Registry_Api * once inside the $startDate - $endDate range. * @param boolean $alarmsOnly Filter results for events with alarms. * Defaults to false. + * @param boolean $showRemote Return events from remote calendars and + * listTimeObject API as well? * * @return array A list of event hashes. */ public function listEvents($startstamp = null, $endstamp = null, $calendars = null, $showRecurrence = true, - $alarmsOnly = false) + $alarmsOnly = false, $showRemote = true) { if (!isset($calendars)) { $calendars = array($GLOBALS['prefs']->getValue('default_share')); @@ -1055,7 +1057,7 @@ class Kronolith_Api extends Horde_Registry_Api return Kronolith::listEvents(new Horde_Date($startstamp), new Horde_Date($endstamp), - $calendars, $showRecurrence, $alarmsOnly); + $calendars, $showRecurrence, $alarmsOnly, $showRemote); } /** -- 2.11.0