aboutsummaryrefslogtreecommitdiff
path: root/lib/task
diff options
context:
space:
mode:
authorSilvio <silvio@devlet.com.br>2010-11-17 16:51:16 -0200
committerSilvio <silvio@devlet.com.br>2010-11-17 16:51:16 -0200
commitb549a90ac492bca7c6915d66db5677f2b9016def (patch)
tree0f53dc0d1a62742a04ed4cf23d47b849f4d44816 /lib/task
parentd665bccaa9ea9af94342a4fa96be545dc1dcd571 (diff)
downloadsf_isis_importer_plugin-b549a90ac492bca7c6915d66db5677f2b9016def.tar.gz
sf_isis_importer_plugin-b549a90ac492bca7c6915d66db5677f2b9016def.tar.bz2
Offset support
Diffstat (limited to 'lib/task')
-rw-r--r--lib/task/isisImportTask.class.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/task/isisImportTask.class.php b/lib/task/isisImportTask.class.php
index 76abd4f..660c106 100644
--- a/lib/task/isisImportTask.class.php
+++ b/lib/task/isisImportTask.class.php
@@ -5,6 +5,7 @@ class isisImportTask extends mySfTask
protected function configure()
{
$this->addArgument('rows', sfCommandArgument::OPTIONAL, 'Optional number of rows to process');
+ $this->addArgument('offset', sfCommandArgument::OPTIONAL, 'Optional row offset to start from');
$this->addOptions(array(
new sfCommandOption('application', null, sfCommandOption::PARAMETER_REQUIRED, 'The application name'),
new sfCommandOption('env', null, sfCommandOption::PARAMETER_REQUIRED, 'The environment', 'dev'),
@@ -41,6 +42,6 @@ EOF;
}
// Mass ISIS import.
- $isis->massImport($this, 'task', $arguments['rows']);
+ $isis->massImport($this, 'task', $arguments['rows'], $arguments['offset']);
}
}