mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01:00
32 lines
828 B
PHP
32 lines
828 B
PHP
<?php
|
|
/**
|
|
* EGroupware - Wizard for Adressbook CSV export
|
|
*
|
|
* @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$
|
|
*/
|
|
|
|
use EGroupware\Api;
|
|
|
|
class calendar_wizard_export_csv extends importexport_wizard_basic_export_csv
|
|
{
|
|
public function __construct() {
|
|
parent::__construct();
|
|
// Field mapping
|
|
$bo = new calendar_tracking();
|
|
$this->export_fields = array('id' => 'Calendar ID') + $bo->field2label;
|
|
|
|
// These are not valid:
|
|
unset($this->export_fields['participants-c']);
|
|
unset($this->export_fields['participants-r']);
|
|
|
|
$custom = Api\Storage\Customfields::get('calendar', true);
|
|
foreach($custom as $name => $data) {
|
|
$this->export_fields['#'.$name] = $data['label'];
|
|
}
|
|
}
|
|
}
|