Author: mcantelon
Date: Fri Dec 30 21:06:07 2011
New Revision: 10495

Log:
Got rid of call-time pass-by-references.

Modified:
   trunk/lib/task/csvImportTask.class.php

Modified: trunk/lib/task/csvImportTask.class.php
==============================================================================
--- trunk/lib/task/csvImportTask.class.php      Fri Dec 30 17:52:12 2011        
(r10494)
+++ trunk/lib/task/csvImportTask.class.php      Fri Dec 30 21:06:07 2011        
(r10495)
@@ -307,7 +307,7 @@
     // closure results in "Fatal error: Call to undefined method"
     if ($this->$property)
     {
-      call_user_func_array($this->$property, array(&$this));
+      call_user_func_array($this->$property, array($this));
     }
   }
 
@@ -371,7 +371,7 @@
       $columnName = $this->columns[$index];
 
       // execute row logic
-      $logic(&$this, $index, $columnName, $row[$index]);
+      $logic($this, $index, $columnName, $row[$index]);
     }
   }
 
@@ -392,7 +392,7 @@
           if 
(is_callable($self->columnMap[$columnName]['transformationLogic']))
           {
             $self->informationObject->{$self->columnMap[$columnName]['column']}
-              = $self->columnMap[$columnName]['transformationLogic'](&$self, 
$value);
+              = $self->columnMap[$columnName]['transformationLogic']($self, 
$value);
           } else {
             
$self->informationObject->{$self->columnMap[$columnName]['column']} = $value;
           }
@@ -408,7 +408,7 @@
         // otherwise, if column is data and a handler is set, use it
         call_user_func_array(
           $self->handlers[$columnName],
-          array(&$self, $value)
+          array($self, $value)
         );
       }
     });
@@ -452,7 +452,7 @@
     $note->typeId = $typeId;
     if ($transformationLogic)
     {
-      $text = $transformationLogic(&$this, $text);
+      $text = $transformationLogic($this, $text);
     }
     $note->content = $text;
     $note->scope = 'QubitTerm'; # not sure if this is needed

-- 
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.

Reply via email to