Author: mcantelon
Date: Thu Dec 29 16:17:57 2011
New Revision: 10481

Log:
Changed misleading function names for determining unhandled columns.

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

Modified: trunk/lib/task/csvImportTask.class.php
==============================================================================
--- trunk/lib/task/csvImportTask.class.php      Thu Dec 29 16:08:32 2011        
(r10480)
+++ trunk/lib/task/csvImportTask.class.php      Thu Dec 29 16:17:57 2011        
(r10481)
@@ -239,7 +239,7 @@
     }
   }
 
-  public function determineIgnored()
+  public function determineUnhandledColumns()
   {
     $ignored = array();
     foreach($this->columns as $column)
@@ -259,15 +259,15 @@
     return $ignored;
   }
 
-  public function ignoredRender()
+  public function renderUnhandledColumns()
   {
     $output = '';
 
-    $ignored = $this->determineIgnored();
+    $ignored = $this->determineUnhandledColumns();
 
     if (sizeof($ignored))
     {
-      print "Ignoring ". sizeof($ignored) . " columns:\n";
+      print sizeof($ignored) . " columns aren't handled or ignored:\n";
       foreach($ignored as $ignore)
       {
         $output .= '  '. $ignore ."\n";
@@ -280,7 +280,7 @@
   public function csv($fh)
   {
     // inform user of any columns not included in import
-    print $this->ignoredRender();
+    print $this->renderUnhandledColumns();
 
     // import each row
     while ($item = fgetcsv($fh, 60000))

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