From b549a90ac492bca7c6915d66db5677f2b9016def Mon Sep 17 00:00:00 2001 From: Silvio Date: Wed, 17 Nov 2010 16:51:16 -0200 Subject: Offset support --- lib/task/isisImportTask.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/task') 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']); } } -- cgit v1.2.3