Web based groupware server written in PHP, forum at https://help.egroupware.org/
Go to file
Nathan Gray 54b4454d51 Add some base classes to make it easier for other applications to implement importing CSVs
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')
			);
		}
        }
?>
2010-03-10 16:31:25 +00:00
addressbook changing the condition for n_fn adaption. change of given name and family name seems not to be sufficient 2010-03-08 11:14:49 +00:00
admin "only use posix_getpwnam to check for existing system user, if it's available (otherwise no more accounts can be created)" 2010-03-08 21:08:16 +00:00
calendar Improve find_event() 2010-03-09 17:03:41 +00:00
doc automatic updating OBS checkout 2010-03-06 09:31:19 +00:00
etemplate "fixed handling of linebreaks from text and rich text fields for xml based formats (Open Office and MS Office)" 2010-03-08 21:56:05 +00:00
filemanager translations provided by g.mueller 2010-02-09 17:03:23 +00:00
home Recover history for home 2009-12-02 06:58:03 +00:00
importexport Add some base classes to make it easier for other applications to implement importing CSVs 2010-03-10 16:31:25 +00:00
infolog Make infolog entries available to delegates even if the entry is private. 2010-03-08 16:07:40 +00:00
notifications translations provided by G.Mueller 2010-02-02 15:46:22 +00:00
phpgwapi "egw_links: remove links user has no access to from result, if $cache_titles is set" 2010-03-10 12:20:51 +00:00
preferences move the ie dropdown menu hack to jsapi, make it an preference, so you can switch it off, if it does not work for you 2010-02-12 09:04:44 +00:00
resources display upload failed (because post_max_size of webserver exceeded) message from etemplate, could be nicer but way better then before 2010-02-05 03:34:17 +00:00
setup fix for Debian Bug#569677: egroupware-core: base configuration fails with php error if egroupware-emailadmin is not installed 2010-02-15 02:58:58 +00:00
timesheet Make changing status for whole query work 2010-02-22 23:02:25 +00:00
.htaccess "upps, .htaccess seems not to allow to use php_admin_value, which is required for newer php to set mbstring.func_overload (leaving the old php_value)" 2009-10-02 09:18:18 +00:00
about.php new about page from Sebastian Ebeling 2007-05-26 19:06:12 +00:00
anon_wrapper.php Formatting cleanup; Removed stray whitespace, especially from the end of some files; Convert api arrays to egw/egw_info 2005-07-08 05:00:14 +00:00
groupdav.php "fix for bug in kde4.2, which seems to have a problem with a 401 without a body" 2009-10-04 07:29:33 +00:00
header.inc.php.template "dont switch on output_buffering (ob_start) for groupdav too, as we cant switch it off saveling and PROPFIND can get really big" 2009-10-16 07:57:09 +00:00
index.php "missing commit from tz selection" 2009-10-16 09:55:12 +00:00
login.php fixed problem pointed out by Nahuel Grisolia <ngrisolia@cybsec.com> 2010-02-13 02:57:22 +00:00
logout.php changing the call of get_sessionid to retrieve the egw_session not only the basic_auth session, this fixes the problem, that sessions where not destroyed at logout 2009-10-02 08:33:13 +00:00
notify_simple.php update headers 2007-02-28 03:40:03 +00:00
notify.php Ensure inclusion of header from the top-level directory 2006-11-22 23:06:05 +00:00
notifyxml.php Ensure inclusion of the top-level header.inc.php 2006-11-22 23:07:19 +00:00
redirect.php redirection via go, by rebuilding the query string; suggested by zorg; seems to work without sideeffects in my enviroment; please give feedback to the '[eGroupWare-developers] bug with notification,felamimail and redirect' entry 2009-06-19 08:28:03 +00:00
rpc.php Fix multi-domain support for SyncML 2010-02-03 12:28:49 +00:00
set_box.php Implement close button for homepage boxes. Still needs a little work to hide the close icon when the box is forced by admin. 2009-09-21 21:29:39 +00:00
soap.php patch fixing many depricated functions (eg. posix regular expressions) and features, which fill up the error_log under php5.3 (and will no longer be available under php6). 2009-06-08 16:21:14 +00:00
svn-helper.php small svn-helper script to deal easier with our wired svn-structure, without arguments it reveals it's secrects ;-) 2007-06-04 06:44:32 +00:00
webdav.php "webdav is stateless: we dont need to keep the session open, it only blocks other calls to same basic-auth session" 2009-11-29 10:53:25 +00:00
xajax.php refractored our exception handler a bit, to allow using part of it from ajax too. Ajax logs now the exception to the error_log and only shows a trace to the user if enabled in the config, like the rest of EGroupware 2010-01-14 23:50:06 +00:00
xmlrpc.php patch fixing many depricated functions (eg. posix regular expressions) and features, which fill up the error_log under php5.3 (and will no longer be available under php6). 2009-06-08 16:21:14 +00:00