aboutsummaryrefslogtreecommitdiff
path: root/lib/sfIsisImporterManager.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sfIsisImporterManager.class.php')
-rw-r--r--lib/sfIsisImporterManager.class.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/sfIsisImporterManager.class.php b/lib/sfIsisImporterManager.class.php
index 7d5d9b3..d261f67 100644
--- a/lib/sfIsisImporterManager.class.php
+++ b/lib/sfIsisImporterManager.class.php
@@ -41,11 +41,11 @@ class sfIsisImporterManager extends IsisConnector
/**
* Progress notifier dispatcher.
*
- * @param int $n Row number
+ * @param int $entry Entry number
*/
- public function progress($n)
+ public function progress($entry)
{
- $this->processed = $this->logger->progress($n);
+ $this->processed = $this->logger->progress($entry, $this->entries);
}
/**
@@ -104,8 +104,8 @@ class sfIsisImporterManager extends IsisConnector
}
}
- $this->log("Finished mass import procedure.");
- $this->log("Total entries processed: $this->processed.");
+ $this->log("Finished mass import procedure.", 'notice');
+ $this->log("Total entries processed: $this->processed.", 'notice');
}
/**
@@ -133,7 +133,7 @@ class sfIsisImporterManager extends IsisConnector
if ($importer)
{
// Determine base model and max entries.
- $this->log('Starting mass import procedure for config '. $database .'.');
+ $this->log('Starting mass import procedure for config '. $database .'.', 'notice');
$base_model = $importer->format['db']['base_model'];
$this->entries = ($entries != NULL && $entries <= $importer->entries) ? $entries : $importer->entries;
@@ -141,7 +141,7 @@ class sfIsisImporterManager extends IsisConnector
for ($entry = 1; $entry <= $this->entries; $entry++)
{
$importer->addEntry($base_model, $entry);
- $this->progress($entry);
+ $this->processed = $this->progress($entry);
}
}