mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 01:13:25 +01:00
30 lines
773 B
PHP
30 lines
773 B
PHP
|
<?php
|
||
|
/**
|
||
|
* eGroupWare - Wizard for Timesheet CSV export
|
||
|
*
|
||
|
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
||
|
* @package timesheet
|
||
|
* @subpackage importexport
|
||
|
* @link http://www.egroupware.org
|
||
|
* @author Nathan Gray
|
||
|
* @version $Id$
|
||
|
*/
|
||
|
|
||
|
class timesheet_wizard_export_csv extends importexport_wizard_basic_export_csv
|
||
|
{
|
||
|
public function __construct() {
|
||
|
parent::__construct();
|
||
|
|
||
|
// Field mapping
|
||
|
$bo = new timesheet_bo();
|
||
|
$this->export_fields = array('ts_id' => 'Timesheet ID') + $bo->field2label;
|
||
|
|
||
|
// Custom fields
|
||
|
unset($this->export_fields['customfields']);
|
||
|
$custom = config::get_customfields('timesheet', true);
|
||
|
foreach($custom as $name => $data) {
|
||
|
$this->export_fields['#'.$name] = $data['label'];
|
||
|
}
|
||
|
}
|
||
|
}
|