- calling egw_time::getTimezones() not possible during setup time -->
stalling all installs
- using tz_id=1 for a default is not possible, as that's the first
regular tz_id on new install --> using '0' now
- added translation for that new calendar setting
and another week (without events) is shown.
- Fix the default value to be consistently 2 at both places where specified
- Fix problem with calendar events "search()" function: offset needs to be 0.
- remove numEntries, which does not make sense for the weekN view (will fill up
the weeks only up to the event which is counted to max.) and seems to be a
legacy from the list view code.
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')
);
}
}
?>