diff options
author | Silvio <silvio@devlet.com.br> | 2010-11-17 18:44:51 -0200 |
---|---|---|
committer | Silvio <silvio@devlet.com.br> | 2010-11-17 18:44:51 -0200 |
commit | 423b302430fa6eb707d4d492b6d943fa6174fc3b (patch) | |
tree | 5f5ae3cf604a538d27e60debe6e1c5bd1cc3473d /lib/task/isisImportTask.class.php | |
parent | 17be361fbd5f39738b78cecff3da64fc8bf4363e (diff) | |
download | sf_isis_importer_plugin-423b302430fa6eb707d4d492b6d943fa6174fc3b.tar.gz sf_isis_importer_plugin-423b302430fa6eb707d4d492b6d943fa6174fc3b.tar.bz2 |
Adding database option to isis:import task
Diffstat (limited to 'lib/task/isisImportTask.class.php')
-rw-r--r-- | lib/task/isisImportTask.class.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/task/isisImportTask.class.php b/lib/task/isisImportTask.class.php index 660c106..124932c 100644 --- a/lib/task/isisImportTask.class.php +++ b/lib/task/isisImportTask.class.php @@ -11,6 +11,7 @@ class isisImportTask extends mySfTask new sfCommandOption('env', null, sfCommandOption::PARAMETER_REQUIRED, 'The environment', 'dev'), new sfCommandOption('connection', null, sfCommandOption::PARAMETER_REQUIRED, 'The connection name', 'doctrine'), new sfCommandOption('loglevel', 'l', sfCommandOption::PARAMETER_REQUIRED, 'Log level', 'info'), + new sfCommandOption('database', 'd', sfCommandOption::PARAMETER_REQUIRED, 'Database', null), )); $this->namespace = 'isis'; @@ -42,6 +43,6 @@ EOF; } // Mass ISIS import. - $isis->massImport($this, 'task', $arguments['rows'], $arguments['offset']); + $isis->massImport($this, 'task', $arguments['rows'], $arguments['offset'], $options['database']); } } |