Changeset View
Changeset View
Standalone View
Standalone View
plugins/calendar/drivers/database/database_driver.php
Show First 20 Lines • Show All 657 Lines • ▼ Show 20 Lines | private function _save_preprocess($event) | ||||
// compose vcalendar-style recurrencue rule from structured data | // compose vcalendar-style recurrencue rule from structured data | ||||
$rrule = !empty($event['recurrence']) ? libcalendaring::to_rrule($event['recurrence']) : ''; | $rrule = !empty($event['recurrence']) ? libcalendaring::to_rrule($event['recurrence']) : ''; | ||||
$sensitivity = isset($event['sensitivity']) ? strtolower($event['sensitivity']) : ''; | $sensitivity = isset($event['sensitivity']) ? strtolower($event['sensitivity']) : ''; | ||||
$free_busy = isset($event['free_busy']) ? strtolower($event['free_busy']) : ''; | $free_busy = isset($event['free_busy']) ? strtolower($event['free_busy']) : ''; | ||||
$event['_recurrence'] = rtrim($rrule, ';'); | $event['_recurrence'] = rtrim($rrule, ';'); | ||||
$event['free_busy'] = isset($this->free_busy_map[$free_busy]) ? $this->free_busy_map[$free_busy] : null; | $event['free_busy'] = isset($this->free_busy_map[$free_busy]) ? $this->free_busy_map[$free_busy] : null; | ||||
$event['sensitivity'] = isset($this->sensitivity_map[$sensitivity]) ? $this->sensitivity_map[$sensitivity] : null; | $event['sensitivity'] = isset($this->sensitivity_map[$sensitivity]) ? $this->sensitivity_map[$sensitivity] : 0; | ||||
$event['all_day'] = !empty($event['allday']) ? 1 : 0; | $event['all_day'] = !empty($event['allday']) ? 1 : 0; | ||||
if ($event['free_busy'] == 'tentative') { | if ($event['free_busy'] == 'tentative') { | ||||
$event['status'] = 'TENTATIVE'; | $event['status'] = 'TENTATIVE'; | ||||
} | } | ||||
// compute absolute time to notify the user | // compute absolute time to notify the user | ||||
$event['notifyat'] = $this->_get_notification($event); | $event['notifyat'] = $this->_get_notification($event); | ||||
▲ Show 20 Lines • Show All 854 Lines • Show Last 20 Lines |