Add wizard for creating export definitions

This commit is contained in:
Nathan Gray 2010-10-07 23:07:02 +00:00
parent dd8df67229
commit de928b294e
2 changed files with 25 additions and 1 deletions

View File

@ -66,7 +66,7 @@ class addressbook_export_contacts_csv implements importexport_iface_export_plugi
* @return string descriprion
*/
public static function get_description() {
return lang("Exports contacts from your Addressbook into a CSV File. CSV means 'Comma Seperated Values'. However in the options Tab you can also choose other seperators.");
return lang("Exports contacts from your Addressbook into a CSV File.");
}
/**

View File

@ -0,0 +1,24 @@
<?php
/**
* eGroupWare - Wizard for Adressbook CSV export
*
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
* @package addressbook
* @link http://www.egroupware.org
* @author Nathan Gray
* @version $Id: $
*/
class addressbook_wizard_export_contacts_csv extends importexport_wizard_basic_export_csv
{
public function __construct() {
parent::__construct();
// Field mapping
$bocontacts = new addressbook_bo();
$this->export_fields = $bocontacts->contact_fields;
foreach($bocontacts->customfields as $name => $data) {
$this->export_fields['#'.$name] = $data['label'];
}
unset($this->export_fields['jpegphoto']); // can't cvs export that
}
}