Changeset View
Changeset View
Standalone View
Standalone View
plugins/calendar/drivers/kolab/kolab_user_calendar.php
Show First 20 Lines • Show All 217 Lines • ▼ Show 20 Lines | if (!empty($query)) { | ||||
foreach ($query as $q) { | foreach ($query as $q) { | ||||
if ($q[0] == 'changed' && $q[1] == '>=') { | if ($q[0] == 'changed' && $q[1] == '>=') { | ||||
try { $limit_changed = new DateTime('@'.$q[2]); } | try { $limit_changed = new DateTime('@'.$q[2]); } | ||||
catch (Exception $e) { /* ignore */ } | catch (Exception $e) { /* ignore */ } | ||||
} | } | ||||
} | } | ||||
} | } | ||||
// aggregate all calendar folders the user shares (but are not subscribed) | // aggregate all calendar folders the user shares (but are not activated) | ||||
foreach (kolab_storage::list_user_folders($this->userdata, 'event', false) as $foldername) { | foreach (kolab_storage::list_user_folders($this->userdata, 'event', 2) as $foldername) { | ||||
$cal = new kolab_calendar($foldername, $this->cal); | $cal = new kolab_calendar($foldername, $this->cal); | ||||
foreach ($cal->list_events($start, $end, $search, 1) as $event) { | foreach ($cal->list_events($start, $end, $search, 1) as $event) { | ||||
$this->events[$event['id']] = $event; | $this->events[$event['id'] ?: $event['uid']] = $event; | ||||
$this->timeindex[$this->time_key($event)] = $event['id']; | $this->timeindex[$this->time_key($event)] = $event['id']; | ||||
} | } | ||||
} | } | ||||
// get events from the user's free/busy feed (for quickview only) | // get events from the user's free/busy feed (for quickview only) | ||||
$fbview = $this->cal->rc->config->get('calendar_include_freebusy_data', 1); | $fbview = $this->cal->rc->config->get('calendar_include_freebusy_data', 1); | ||||
if ($fbview && ($fbview == 1 || !empty($_REQUEST['_quickview'])) && empty($search)) { | if ($fbview && ($fbview == 1 || !empty($_REQUEST['_quickview'])) && empty($search)) { | ||||
$this->fetch_freebusy($limit_changed); | $this->fetch_freebusy($limit_changed); | ||||
▲ Show 20 Lines • Show All 188 Lines • Show Last 20 Lines |