mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-12 19:14:57 +01:00
54b4454d51
To use them, you need to create two files in the app/importexport directory, 'class.import_appname_csv.inc.php' and 'class.wizzard_import_appname_csv.inc.php'. The minimum required files are shown below, but they can be modified as needed to override the basics and add capabilities. class.import_appname_csv.inc.php: <?php require_once(EGW_INCLUDE_ROOT. '/importexport/inc/class.basic_import_csv.inc.php'); class import_appname_csv extends basic_import_csv { protected function import_record(&$record, &$import_csv) { // Handle one record here. Handle conditions and call action() as appropriate. // See basic_import_csv. } protected function action($action, Array $record, $record_num = 0) { // Take the given action (none, insert, delete, update) etc. as understood for your app. // See basic_import_csv. } } ?> class.wizzard_import_appname_csv.inc.php: <?php require_once(EGW_INCLUDE_ROOT . '/appname/importexport/class.import_appname_csv.inc.php'); require_once(EGW_INCLUDE_ROOT . '/importexport/inc/class.wizzard_basic_import_csv.inc.php'); class wizzard_import_appname_csv extends wizzard_basic_import_csv { public function __construct() { $this->mapping_fields = array( // List of destination fields available in appname 'field' => lang('name') ); $this->conditions = array( // List of conditions supported by import_appname_csv 'field' => lang('name') ); $this->actions = array( // List of actions supported by import_appname_csv 'field' => lang('name') ); } } ?> |
||
---|---|---|
.. | ||
.class.bodefinitions.inc.php.swp | ||
class.arrayxml.inc.php | ||
class.basic_import_csv.inc.php | ||
class.bodefinitions.inc.php | ||
class.definition.inc.php | ||
class.export_csv.inc.php | ||
class.iface_egw_record.inc.php | ||
class.iface_export_plugin.inc.php | ||
class.iface_export_record.inc.php | ||
class.iface_import_plugin.inc.php | ||
class.iface_import_record.inc.php | ||
class.import_csv.inc.php | ||
class.import_export_helper_functions.inc.php | ||
class.importexport_admin_prefs_sidebox_hooks.inc.php | ||
class.importexport_import_ui.inc.php | ||
class.importexport_schedule_ui.inc.php | ||
class.uidefinitions.inc.php | ||
class.uiexport.inc.php | ||
class.wizzard_basic_import_csv.inc.php |