mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-25 23:39:09 +01:00
Convert recurrence type and interval to human friendly values
This commit is contained in:
parent
dcf7ce486f
commit
9f13b381e0
@ -40,6 +40,7 @@ class calendar_export_csv implements importexport_iface_export_plugin {
|
|||||||
$convert_fields['date-time'][] = 'start';
|
$convert_fields['date-time'][] = 'start';
|
||||||
$convert_fields['date-time'][] = 'end';
|
$convert_fields['date-time'][] = 'end';
|
||||||
|
|
||||||
|
$recurrence = $this->bo->recur_types;
|
||||||
|
|
||||||
// $options['selection'] is array of identifiers as this plugin doesn't
|
// $options['selection'] is array of identifiers as this plugin doesn't
|
||||||
// support other selectors atm.
|
// support other selectors atm.
|
||||||
@ -51,8 +52,14 @@ class calendar_export_csv implements importexport_iface_export_plugin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$record->set_record($event);
|
$record->set_record($event);
|
||||||
|
if($options['mapping']['recurrence']) {
|
||||||
|
$record->recurrence = $recurrence[$record->recur_type];
|
||||||
|
if($record->recur_type != MCAL_RECUR_NONE) $record->recurrence .= ' / '. $record->recur_interval;
|
||||||
|
}
|
||||||
|
|
||||||
// Standard stuff
|
// Standard stuff
|
||||||
importexport_export_csv::convert($record, $convert_fields, 'calendar');
|
importexport_export_csv::convert($record, $convert_fields, 'calendar');
|
||||||
|
|
||||||
$export_object->export_record($record);
|
$export_object->export_record($record);
|
||||||
}
|
}
|
||||||
unset($record);
|
unset($record);
|
||||||
|
Loading…
Reference in New Issue
Block a user