aboutsummaryrefslogtreecommitdiff
path: root/lib/sfIsisImporterManager.class.php
diff options
context:
space:
mode:
authorSilvio <s1lv10@uol.com.br>2010-07-30 12:00:24 -0300
committerSilvio <s1lv10@uol.com.br>2010-07-30 12:00:24 -0300
commit3a6f275518bc62d7fcf41cc52bae46160478c07a (patch)
tree13473ef159876dbca6e67b70b0c81533a135da21 /lib/sfIsisImporterManager.class.php
parente2e83df93a77ff7d7597384a26d17a0aef2eb232 (diff)
downloadsf_isis_importer_plugin-3a6f275518bc62d7fcf41cc52bae46160478c07a.tar.gz
sf_isis_importer_plugin-3a6f275518bc62d7fcf41cc52bae46160478c07a.tar.bz2
Logging fixes
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);
}
}