Commit Graph

15464 Commits

Author SHA1 Message Date
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
Ralf Becker
c63eea32f6 "egw_links: remove links user has no access to from result, if $cache_titles is set" 2010-03-10 12:22:33 +00:00
Ralf Becker
f7ee51f53b "egw_links: remove links user has no access to from result, if $cache_titles is set" 2010-03-10 12:20:51 +00:00
Jörg Lehrke
871635002a Improve find_event() 2010-03-09 17:03:41 +00:00
Jörg Lehrke
1162445002 Improve find_event() 2010-03-09 17:03:33 +00:00
Nathan Gray
f85abe96f8 Fix popup size for new definitions 2010-03-09 16:26:17 +00:00
Jörg Lehrke
191d0c7fd5 Fix 'search for series master' issue 2010-03-09 09:28:46 +00:00
Jörg Lehrke
6f68c0a41b Fix 'search for series master' issue 2010-03-09 09:28:23 +00:00
Ralf Becker
7608a38aa3 "fixed handling of linebreaks from text and rich text fields for xml based formats (Open Office and MS Office)" 2010-03-08 21:57:41 +00:00
Ralf Becker
bb580029c1 "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
Ralf Becker
efe7eabe52 "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:09:00 +00:00
Ralf Becker
1a5245e101 "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
Nathan Gray
0a75258cda Make infolog entries available to delegates even if the entry is private. 2010-03-08 16:07:40 +00:00
Jörg Lehrke
0978663ada Fix Funambol STATUS issue 2010-03-08 13:54:13 +00:00
Jörg Lehrke
1b301569e1 Fix Funambol STATUS issue 2010-03-08 13:53:57 +00:00
Ralf Becker
26093851cf "replace all control chars (C0+C1) but CR, LF and TAB (eg. vertical tabulators) with space as they are not allowed in xml" 2010-03-08 11:35:36 +00:00
Klaus Leithoff
5ea61e1cc1 changing the condition for n_fn adaption. change of given name and family name seems not to be sufficient 2010-03-08 11:34:38 +00:00
Ralf Becker
3f8da06a9e "replace all control chars (C0+C1) but CR, LF and TAB (eg. vertical tabulators) with space as they are not allowed in xml" 2010-03-08 11:34:22 +00:00
Klaus Leithoff
2595f62573 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
Jörg Lehrke
0c5a5b0362 Handle failures in event2rrule gracefully 2010-03-08 06:54:10 +00:00
Jörg Lehrke
20aab1b6f2 Handle failures in event2rrule gracefully 2010-03-08 06:54:02 +00:00
Jörg Lehrke
031296bf0b TZ support for tracking 2010-03-08 06:28:45 +00:00
Nathan Gray
3a09d2072f Fix for cast from Anthony Messina 2010-03-07 22:09:48 +00:00
Jörg Lehrke
a69887122e Apply Calendar SyncML and GroupDAV changes 2010-03-07 22:07:34 +00:00
Jörg Lehrke
3bd935a541 Apply InfoLog SyncML and GroupDAV changes 2010-03-07 15:47:00 +00:00
Ralf Becker
3d482fbcef Backported r29080 (Last Modified sort header), r29431 (translation and
fixes), r29141 (Skip notification check box) and r29433 (fixes) to 9.2
2010-03-07 14:50:24 +00:00
Ralf Becker
83b60b81fc Fixed r29141: "Add a checkbox to allow user to prevent notification of
changes to a ticket", to NOT prevent history logging, if checked
2010-03-07 14:45:12 +00:00
Jörg Lehrke
f499955670 Apply Addressbook SyncML and GroupDAV changes 2010-03-07 12:48:10 +00:00
Jörg Lehrke
2179ebb521 Fix principal-URL for users 2010-03-07 12:36:12 +00:00
Jörg Lehrke
7bb92a86af Fix principal-URL for users 2010-03-07 12:35:20 +00:00
Jörg Lehrke
f187b1e31f New GroupDAV base classes 2010-03-07 12:23:19 +00:00
Jörg Lehrke
86039be423 New SyncML base classes 2010-03-07 12:21:40 +00:00
Ralf Becker
f7f54b0e1c remove not used non-php server scripts 2010-03-07 10:23:08 +00:00
Ralf Becker
e785b8bb03 remove now unused groupdav_groups class 2010-03-07 07:04:33 +00:00
Jörg Lehrke
99255ecb25 disable GroupDAV debug logs 2010-03-06 23:32:28 +00:00
Jörg Lehrke
a8804a44ef GroupDAV updates 2010-03-06 23:06:43 +00:00
Nathan Gray
79824c2e0c Use cast only for Postgres, as in projectmanager 2010-03-06 15:49:59 +00:00
Ralf Becker
94b15909a6 automatic updating OBS checkout 2010-03-06 09:32:38 +00:00
Ralf Becker
6008620034 automatic updating OBS checkout 2010-03-06 09:31:19 +00:00
Nathan Gray
11183a763d Cast sync_contentid to unsigned int 2010-03-06 02:40:57 +00:00
Nathan Gray
cb5054f2e4 Add an option to keep deleted events, only an admin can purge them 2010-03-05 20:01:44 +00:00
Ralf Becker
4c9e6946c1 "only update same major version" 2010-03-05 16:22:37 +00:00
Ralf Becker
a6cc1cfe18 "only update same major version" 2010-03-05 16:21:21 +00:00
Ralf Becker
9f7b863589 allow to replace archives in obs checkout 2010-03-05 15:23:02 +00:00
Ralf Becker
f455ca37f1 "allow to replace archives in obs checkout" 2010-03-05 15:09:13 +00:00
Ralf Becker
64ba772ab4 sort group-addressbooks and other-user-addressbooks alphabetical 2010-03-05 14:56:01 +00:00
Ralf Becker
97d3b59999 "sort group-addressbooks and other-user-addressbooks alphabetical" 2010-03-05 14:54:07 +00:00
Jörg Lehrke
d397dcded2 Fix n_fn update issue 2010-03-05 08:28:25 +00:00
Ralf Becker
3eb38935bb caching etemplates using egw_cache class on instance level (instead off old not egw_cached based code on request level), to ease the load on the db 2010-03-05 08:18:46 +00:00
Ralf Becker
ae32ac2a4e dont use IN ( ), if there's only one value, it's slower for MySQL 2010-03-04 17:19:37 +00:00