id, $expand); $value =& self::get_array(self::$request->content, $form_name, true); if(!is_array($value)) $value = array(); foreach($value as $day => &$events) { if(!is_array($events)) { continue; } foreach($events as &$event) { if(!is_array($event)) continue; foreach(array('start','end') as $date) { $event[$date] = egw_time::to($event[$date],'Y-m-d\TH:i:s\Z'); } } } } /** * Ajax callback to fetch the holidays for a given year. * @param type $year */ public static function ajax_get_holidays($year) { $cal_bo = new calendar_bo(); $holidays = $cal_bo->read_holidays((int)$year); egw_json_response::get()->data($holidays); } }