2010-10-13 00:45:02 +02:00
|
|
|
<?php
|
|
|
|
/**
|
2016-05-01 19:47:59 +02:00
|
|
|
* EGroupware - Wizard for Adressbook CSV export
|
2010-10-13 00:45:02 +02:00
|
|
|
*
|
|
|
|
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
|
|
|
* @package calendar
|
|
|
|
* @link http://www.egroupware.org
|
|
|
|
* @author Nathan Gray
|
|
|
|
* @version $Id$
|
|
|
|
*/
|
|
|
|
|
2016-05-01 19:47:59 +02:00
|
|
|
use EGroupware\Api;
|
|
|
|
|
2010-10-13 00:45:02 +02:00
|
|
|
class calendar_wizard_export_csv extends importexport_wizard_basic_export_csv
|
|
|
|
{
|
|
|
|
public function __construct() {
|
|
|
|
parent::__construct();
|
|
|
|
// Field mapping
|
|
|
|
$bo = new calendar_tracking();
|
2011-04-07 01:27:22 +02:00
|
|
|
$this->export_fields = array('id' => 'Calendar ID') + $bo->field2label;
|
2016-03-25 17:32:15 +01:00
|
|
|
|
|
|
|
// These are not valid:
|
|
|
|
unset($this->export_fields['participants-c']);
|
|
|
|
unset($this->export_fields['participants-r']);
|
|
|
|
|
2016-05-01 19:47:59 +02:00
|
|
|
$custom = Api\Storage\Customfields::get('calendar', true);
|
2010-10-13 00:45:02 +02:00
|
|
|
foreach($custom as $name => $data) {
|
|
|
|
$this->export_fields['#'.$name] = $data['label'];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|