if ($kronolith_driver->calendar != $cal) {
$kronolith_driver->open($cal);
}
- $events[$cal] = $kronolith_driver->listEvents($start, $end);
+ $events[$cal] = $kronolith_driver->listEvents($start, $end, false, false, false, false);
}
if (!$events) {
* effect in this driver.
* @param boolean $json Store the results of the events'
* toJson() method?
+ * @param boolean $coverDates Whether to add the events to all days
+ * that they cover.
*
* @return array Events in the given time range.
*/
public function listEvents($startDate = null, $endDate = null,
$showRecurrence = false, $hasAlarm = false,
- $json = false)
+ $json = false, $coverDates = true)
{
if (!class_exists('Date_Holidays')) {
Horde::logMessage('Support for Date_Holidays has been enabled but the package seems to be missing.',
$events = $this->_getEvents($dh, $startDate, $endDate);
foreach ($events as $event) {
Kronolith::addEvents($results, $event, $startDate, $endDate,
- $showRecurrence, $json);
+ $showRecurrence, $json, $coverDates);
}
}
* @param boolean $hasAlarm Only return events with alarms?
* @param boolean $json Store the results of the events'
* toJson() method?
+ * @param boolean $coverDates Whether to add the events to all days
+ * that they cover.
*
* @return array Events in the given time range.
* @throws Horde_Exception
*/
public function listEvents($startDate = null, $endDate = null,
$showRecurrence = false, $hasAlarm = false,
- $json = false)
+ $json = false, $coverDates = true)
{
list($this->api, $category) = explode('/', $this->calendar, 2);
if (!$this->_params['registry']->hasMethod($this->api . '/listTimeObjects')) {
}
Kronolith::addEvents($results, $event, $startDate,
- $endDate, $showRecurrence, $json);
+ $endDate, $showRecurrence, $json, $coverDates);
}
return $results;
* @param boolean $hasAlarm Only return events with alarms?
* @param boolean $json Store the results of the events'
* toJson() method?
+ * @param boolean $coverDates Whether to add the events to all days
+ * that they cover.
*
* @return array Events in the given time range.
*/
public function listEvents($startDate = null, $endDate = null,
$showRecurrence = false, $hasAlarm = false,
- $json = false)
+ $json = false, $coverDates = true)
{
$iCal = $this->getRemoteCalendar();
if (is_a($iCal, 'PEAR_Error')) {
$events[$key]->recurrence->addException(date('Y', $timestamp), date('m', $timestamp), date('d', $timestamp));
}
Kronolith::addEvents($results, $event, $startDate, $endDate,
- $showRecurrence, $json);
+ $showRecurrence, $json, $coverDates);
}
return $results;
* @param boolean $hasAlarm Only return events with alarms?
* @param boolean $json Store the results of the events'
* toJson() method?
+ * @param boolean $coverDates Whether to add the events to all days
+ * that they cover.
*
* @return array Events in the given time range.
*/
public function listEvents($startDate = null, $endDate = null,
$showRecurrence = false, $hasAlarm = false,
- $json = false)
+ $json = false, $coverDates = true)
{
$result = $this->synchronize();
if (is_a($result, 'PEAR_Error')) {
}
Kronolith::addEvents($events, $event, $startDate, $endDate,
- $showRecurrence, $json);
+ $showRecurrence, $json, $coverDates);
}
return $events;
* @param boolean $hasAlarm Only return events with alarms?
* @param boolean $json Store the results of the events'
* toJson() method?
+ * @param boolean $coverDates Whether to add the events to all days
+ * that they cover.
*
* @return array Events in the given time range.
*/
public function listEvents($startDate = null, $endDate = null,
$showRecurrence = false, $hasAlarm = false,
- $json = false)
+ $json = false, $coverDates = true)
{
if (!is_null($startDate)) {
$startDate = clone $startDate;
$results = array();
foreach ($events as $id) {
Kronolith::addEvents($results, $this->getEvent($id), $startDate,
- $endDate, $showRecurrence, $json);
+ $endDate, $showRecurrence, $json, $coverDates);
}
return $results;
* @access private
*/
public static function addEvents(&$results, &$event, $startDate, $endDate,
- $showRecurrence, $json,
- $coverDates = true)
+ $showRecurrence, $json, $coverDates = true)
{
if ($event->recurs() && $showRecurrence) {
/* Recurring Event. */