Author: mcantelon
Date: Wed Jan 11 16:23:38 2012
New Revision: 10648
Log:
Got rid of redundant rowInit logic in QubitFlatfile.
Modified:
trunk/lib/QubitFlatfileImport.class.php
trunk/lib/task/csvImportTask.class.php
Modified: trunk/lib/QubitFlatfileImport.class.php
==============================================================================
--- trunk/lib/QubitFlatfileImport.class.php Wed Jan 11 15:55:11 2012
(r10647)
+++ trunk/lib/QubitFlatfileImport.class.php Wed Jan 11 16:23:38 2012
(r10648)
@@ -46,7 +46,6 @@
'defaultStatusId',
'defaultStatusTypeId',
'testing',
- 'rowInit',
'preSaveLogic',
'postSaveLogic',
'propertyMap',
@@ -383,9 +382,6 @@
public function row($row = array())
{
- // execute row initialization logic
- $this->executeClosurePropertyIfSet('rowInit');
-
// set fields in information object and execute custom column handlers
$this->rowProcessingBeforeSave($row);
Modified: trunk/lib/task/csvImportTask.class.php
==============================================================================
--- trunk/lib/task/csvImportTask.class.php Wed Jan 11 15:55:11 2012
(r10647)
+++ trunk/lib/task/csvImportTask.class.php Wed Jan 11 16:23:38 2012
(r10648)
@@ -46,7 +46,7 @@
$this->namespace = 'csv';
$this->name = 'import';
- $this->briefDescription = 'Import csv data';
+ $this->briefDescription = 'Import csv information object data';
$this->detailedDescription = <<<EOF
Import CSV data
@@ -219,13 +219,11 @@
'placeAccessPoints' => '|',
'nameAccessPoints' => '|'
),
- 'rowInit' => function(&$self)
- {
- $self->informationObject = new QubitInformationObject;
- },
/* import logic to execute before saving information object */
'preSaveLogic' => function(&$self)
{
+ $self->informationObject = new QubitInformationObject;
+
// set to default status
$self->informationObject->setStatus(array(
'statusId' => $self->defaultStatusId,
--
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.