Author: mcantelon
Date: Wed Feb  8 11:42:31 2012
New Revision: 10823

Log:
Added completeLogic property to QubitFlatfile for import cleanup, etc. logic.

Modified:
   trunk/lib/QubitFlatfileImport.class.php

Modified: trunk/lib/QubitFlatfileImport.class.php
==============================================================================
--- trunk/lib/QubitFlatfileImport.class.php     Wed Feb  8 11:16:48 2012        
(r10822)
+++ trunk/lib/QubitFlatfileImport.class.php     Wed Feb  8 11:42:31 2012        
(r10823)
@@ -50,6 +50,7 @@
   public $preSaveLogic;  // Optional pre-save logic
   public $saveLogic;     // Optional logic to save object if not using 
$className
   public $postSaveLogic; // Optional post-save logic
+  public $completeLogic; // Optional cleanup, etc. logic for after import
 
   public function __construct($options)
   {
@@ -374,6 +375,9 @@
     }
 
     $this->stopTimer();
+
+    // add ability to define cleanup, etc. logic
+    $this->executeClosurePropertyIfSet('completeLogic');
   }
 
   /**

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