Allow indicating if we want remote/listTimeObject events from calendar/listEvents
authorMichael J. Rubinsky <mrubinsk@horde.org>
Wed, 3 Feb 2010 23:21:47 +0000 (18:21 -0500)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Wed, 3 Feb 2010 23:21:47 +0000 (18:21 -0500)
kronolith/lib/Api.php

index 3522a9b..8dfacf9 100644 (file)
@@ -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);
     }
 
     /**