Author: mcantelon
Date: Mon Jan 9 18:26:18 2012
New Revision: 10604
Log:
Finished logic that tells which column handlers aren't referencing an import
column.
Modified:
trunk/lib/QubitFlatfileImport.class.php
Modified: trunk/lib/QubitFlatfileImport.class.php
==============================================================================
--- trunk/lib/QubitFlatfileImport.class.php Mon Jan 9 17:59:12 2012
(r10603)
+++ trunk/lib/QubitFlatfileImport.class.php Mon Jan 9 18:26:18 2012
(r10604)
@@ -29,6 +29,15 @@
{
public function __construct($options)
{
+ $this->status = array();
+ $this->standardColumns = array();
+ $this->columnMap = array();
+ $this->propertyMap = array();
+ $this->noteMap = array();
+ $this->handlers = array();
+ $this->variableColumns = array();
+ $this->arrayColumns = array();
+
$allowedOptions = array(
'status',
'ignoreColumns',
@@ -129,9 +138,21 @@
return $combined;
}
- public function determineHandledColumns()
+ public function determineUnmatchedHandledColumns()
+ {
+ $unmatchedColumns = array();
+
+ foreach($this->handledColumns() as $handledColumn)
+ {
+ if (!in_array($handledColumn, $this->columnNames))
array_push($unmatchedColumns, $handledColumn);
+ }
+
+ return $unmatchedColumns;
+ }
+
+ public function handledColumns()
{
- $handledColumns = $this->combineArraysWithoutDuplicates(
+ return $this->combineArraysWithoutDuplicates(
$this->standardColumns,
$this->variableColumns,
array_keys($this->columnMap),
--
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.