Author: mcantelon
Date: Wed Apr 4 11:58:54 2012
New Revision: 11364
Log:
Moved source-name options from base class.
Modified:
trunk/lib/task/import/csvAccessionImportTask.class.php
trunk/lib/task/import/csvAuthorityRecordImportTask.class.php
trunk/lib/task/import/csvCustomImportTask.class.php
trunk/lib/task/import/csvEventImportTask.class.php
trunk/lib/task/import/csvImportBaseTask.class.php
trunk/lib/task/import/csvImportTask.class.php
Modified: trunk/lib/task/import/csvAccessionImportTask.class.php
==============================================================================
--- trunk/lib/task/import/csvAccessionImportTask.class.php Wed Apr 4
11:48:33 2012 (r11363)
+++ trunk/lib/task/import/csvAccessionImportTask.class.php Wed Apr 4
11:58:54 2012 (r11364)
@@ -37,6 +37,18 @@
/**
* @see sfTask
*/
+ protected function configure()
+ {
+ parent::configure();
+
+ $this->addOptions(array(
+ new sfCommandOption('source-name', null,
sfCommandOption::PARAMETER_OPTIONAL, 'Source name to use when inserting keymap
entries.')
+ ));
+ }
+
+ /**
+ * @see sfTask
+ */
public function execute($arguments = array(), $options = array())
{
$this->validateOptions($options);
Modified: trunk/lib/task/import/csvAuthorityRecordImportTask.class.php
==============================================================================
--- trunk/lib/task/import/csvAuthorityRecordImportTask.class.php Wed Apr
4 11:48:33 2012 (r11363)
+++ trunk/lib/task/import/csvAuthorityRecordImportTask.class.php Wed Apr
4 11:58:54 2012 (r11364)
@@ -43,7 +43,8 @@
$this->addOptions(array(
new sfCommandOption('alias-file', null,
sfCommandOption::PARAMETER_OPTIONAL, 'CSV file containing aliases.'),
- new sfCommandOption('relation-file', null,
sfCommandOption::PARAMETER_OPTIONAL, 'CSV file containing relationships.')
+ new sfCommandOption('relation-file', null,
sfCommandOption::PARAMETER_OPTIONAL, 'CSV file containing relationships.'),
+ new sfCommandOption('source-name', null,
sfCommandOption::PARAMETER_OPTIONAL, 'Source name to use when inserting keymap
entries.')
));
}
Modified: trunk/lib/task/import/csvCustomImportTask.class.php
==============================================================================
--- trunk/lib/task/import/csvCustomImportTask.class.php Wed Apr 4 11:48:33
2012 (r11363)
+++ trunk/lib/task/import/csvCustomImportTask.class.php Wed Apr 4 11:58:54
2012 (r11364)
@@ -44,7 +44,8 @@
$this->addOptions(array(
new sfCommandOption('import-definition', null,
sfCommandOption::PARAMETER_REQUIRED, 'PHP file defining and returning an import
object.'),
- new sfCommandOption('output-file', null,
sfCommandOption::PARAMETER_OPTIONAL, 'Optional output file parameter which can
be referenced by import definition logic.')
+ new sfCommandOption('output-file', null,
sfCommandOption::PARAMETER_OPTIONAL, 'Optional output file parameter which can
be referenced by import definition logic.'),
+ new sfCommandOption('source-name', null,
sfCommandOption::PARAMETER_OPTIONAL, 'Source name to use when inserting keymap
entries.')
));
}
Modified: trunk/lib/task/import/csvEventImportTask.class.php
==============================================================================
--- trunk/lib/task/import/csvEventImportTask.class.php Wed Apr 4 11:48:33
2012 (r11363)
+++ trunk/lib/task/import/csvEventImportTask.class.php Wed Apr 4 11:58:54
2012 (r11364)
@@ -42,7 +42,8 @@
parent::configure();
$this->addOptions(array(
- new sfCommandOption('event-types', null,
sfCommandOption::PARAMETER_OPTIONAL, 'Event type terms to create, if they do
not yet exist, before import.')
+ new sfCommandOption('event-types', null,
sfCommandOption::PARAMETER_OPTIONAL, 'Event type terms to create, if they do
not yet exist, before import.'),
+ new sfCommandOption('source-name', null,
sfCommandOption::PARAMETER_OPTIONAL, 'Source name to use when inserting keymap
entries.')
));
}
Modified: trunk/lib/task/import/csvImportBaseTask.class.php
==============================================================================
--- trunk/lib/task/import/csvImportBaseTask.class.php Wed Apr 4 11:48:33
2012 (r11363)
+++ trunk/lib/task/import/csvImportBaseTask.class.php Wed Apr 4 11:58:54
2012 (r11364)
@@ -39,8 +39,7 @@
$this->addOptions(array(
new sfCommandOption('rows-until-update', null,
sfCommandOption::PARAMETER_OPTIONAL, 'Output total rows imported every n
rows.'),
new sfCommandOption('skip-rows', null,
sfCommandOption::PARAMETER_OPTIONAL, 'Skip n rows before importing.'),
- new sfCommandOption('error-log', null,
sfCommandOption::PARAMETER_OPTIONAL, 'File to log errors to.'),
- new sfCommandOption('source-name', null,
sfCommandOption::PARAMETER_OPTIONAL, 'Source name to use when inserting keymap
entries.')
+ new sfCommandOption('error-log', null,
sfCommandOption::PARAMETER_OPTIONAL, 'File to log errors to.')
));
}
Modified: trunk/lib/task/import/csvImportTask.class.php
==============================================================================
--- trunk/lib/task/import/csvImportTask.class.php Wed Apr 4 11:48:33
2012 (r11363)
+++ trunk/lib/task/import/csvImportTask.class.php Wed Apr 4 11:58:54
2012 (r11364)
@@ -38,6 +38,18 @@
/**
* @see sfTask
*/
+ protected function configure()
+ {
+ parent::configure();
+
+ $this->addOptions(array(
+ new sfCommandOption('source-name', null,
sfCommandOption::PARAMETER_OPTIONAL, 'Source name to use when inserting keymap
entries.')
+ ));
+ }
+
+ /**
+ * @see sfTask
+ */
public function execute($arguments = array(), $options = array())
{
$this->validateOptions($options);
--
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/qubit-commits?hl=en.