Author: mcantelon
Date: Fri Feb 10 14:36:42 2012
New Revision: 10857
Log:
Made display of column usage optional.
Modified:
trunk/lib/QubitFlatfileImport.class.php
Modified: trunk/lib/QubitFlatfileImport.class.php
==============================================================================
--- trunk/lib/QubitFlatfileImport.class.php Fri Feb 10 14:14:36 2012
(r10856)
+++ trunk/lib/QubitFlatfileImport.class.php Fri Feb 10 14:36:42 2012
(r10857)
@@ -29,6 +29,7 @@
{
public $className; // optional class name of object to
create/save
public $errorLog; // optional location of error log file
+ public $showColumnUsage = FALSE; // optional display of column usage
public $rowsUntilProgressDisplay; // optional display progress every n rows
public $status = array(); // place to store data related to overall
import
@@ -338,12 +339,15 @@
$this->columnNames = fgetcsv($fh, 60000);
$this->handleColumnRenaming();
- // inform user of any columns not included in import
- print $this->renderUnhandledColumns();
+ if ($this->showColumnUsage)
+ {
+ // inform user of any columns not included in import
+ print $this->renderUnhandledColumns();
- // inform user of any columns that are handled, but don't match import
- // columns
- print $this->renderUnmatchedColumns();
+ // inform user of any columns that are handled, but don't match import
+ // columns
+ print $this->renderUnmatchedColumns();
+ }
// disable search indexing to imrpove import speed
QubitSearch::getInstance()->disabled = true;
--
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.