mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-14 01:48:35 +01:00
Web based groupware server written in PHP, forum at https://help.egroupware.org/
address-bookcaldav-servercalendarcarddav-servercollaborationegroupwarejavascriptphpproject-managementwebmail
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') ); } } ?> |
||
---|---|---|
addressbook | ||
admin | ||
calendar | ||
doc | ||
etemplate | ||
filemanager | ||
home | ||
importexport | ||
infolog | ||
notifications | ||
phpgwapi | ||
preferences | ||
resources | ||
setup | ||
timesheet | ||
.htaccess | ||
about.php | ||
anon_wrapper.php | ||
groupdav.php | ||
header.inc.php.template | ||
index.php | ||
login.php | ||
logout.php | ||
notify_simple.php | ||
notify.php | ||
notifyxml.php | ||
redirect.php | ||
rpc.php | ||
set_box.php | ||
soap.php | ||
svn-helper.php | ||
webdav.php | ||
xajax.php | ||
xmlrpc.php |