[limb-svn] r6687 - 3.x/trunk/limb/core/src

svn at limb-project.com svn at limb-project.com
Thu Jan 10 17:15:52 MSK 2008


Author: serega
Date: 2008-01-10 17:15:52 +0300 (Thu, 10 Jan 2008)
New Revision: 6687
URL: http://fisheye.limb-project.com/changelog/limb/?cs=6687

Modified:
   3.x/trunk/limb/core/src/lmbCollection.class.php
Log:
-- lmbCollection :: toFlatArray() third argument added what tells if we need to call export() for each record or not. The default value is true to keep BC

Modified: 3.x/trunk/limb/core/src/lmbCollection.class.php
===================================================================
--- 3.x/trunk/limb/core/src/lmbCollection.class.php	2007-12-31 11:16:21 UTC (rev 6686)
+++ 3.x/trunk/limb/core/src/lmbCollection.class.php	2008-01-10 14:15:52 UTC (rev 6687)
@@ -50,13 +50,13 @@
     return $result;
   }
 
-  static function toFlatArray($iterator, $key_field = '')
+  static function toFlatArray($iterator, $key_field = '', $export_each = true)
   {
     $result = array();
     foreach($iterator as $record)
     {
       $data = null;
-      if(is_object($record) && method_exists($record, 'export'))
+      if(is_object($record) && method_exists($record, 'export') && $export_each)
         $data = $record->export();
       else
         $data = $record;



More information about the limb-svn mailing list