mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-12 17:08:34 +01:00
Add some more time every 100 rows as long as things are still going
This commit is contained in:
parent
f5dc2d6903
commit
4d64856fcd
@ -170,6 +170,12 @@ abstract class importexport_basic_import_csv implements importexport_iface_impor
|
|||||||
|
|
||||||
if($success) $count++;
|
if($success) $count++;
|
||||||
|
|
||||||
|
// Add some more time
|
||||||
|
if($success && $import_csv->get_current_position() > 0 && $import_csv->get_current_position() % 100 == 0)
|
||||||
|
{
|
||||||
|
set_time_limit(10);
|
||||||
|
}
|
||||||
|
|
||||||
// Keep a few records for preview, but process the whole file
|
// Keep a few records for preview, but process the whole file
|
||||||
if($this->dry_run && $import_csv->get_current_position() < $GLOBALS['egw_info']['user']['preferences']['common']['maxmatchs'])
|
if($this->dry_run && $import_csv->get_current_position() < $GLOBALS['egw_info']['user']['preferences']['common']['maxmatchs'])
|
||||||
{
|
{
|
||||||
@ -373,27 +379,27 @@ abstract class importexport_basic_import_csv implements importexport_iface_impor
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns errors that were encountered during importing
|
* Returns errors that were encountered during importing
|
||||||
* Maximum of one error message per record, but you can append if you need to
|
* Maximum of one error message per record, but you can append if you need to
|
||||||
*
|
*
|
||||||
* @return Array (
|
* @return Array (
|
||||||
* record_# => error message
|
* record_# => error message
|
||||||
* )
|
* )
|
||||||
*/
|
*/
|
||||||
public function get_errors() {
|
public function get_errors() {
|
||||||
return $this->errors;
|
return $this->errors;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a list of actions taken, and the number of records for that action.
|
* Returns a list of actions taken, and the number of records for that action.
|
||||||
* Actions are things like 'insert', 'update', 'delete', and may be different for each plugin.
|
* Actions are things like 'insert', 'update', 'delete', and may be different for each plugin.
|
||||||
*
|
*
|
||||||
* @return Array (
|
* @return Array (
|
||||||
* action => record count
|
* action => record count
|
||||||
* )
|
* )
|
||||||
*/
|
*/
|
||||||
public function get_results() {
|
public function get_results() {
|
||||||
return $this->results;
|
return $this->results;
|
||||||
}
|
}
|
||||||
} // end of iface_export_plugin
|
} // end of iface_export_plugin
|
||||||
?>
|
?>
|
||||||
|
Loading…
Reference in New Issue
Block a user