Пример #1
0
 $ibfd->module = $module;
 unset($GLOBALS['queryHead']);
 unset($GLOBALS['queries']);
 /* We need to insert $total records
  * into the DB.  We are using the module and table-name given by
  * $module and $bean->table_name. */
 for ($i = 0; $i < $total; $i++) {
     if (isset($_SESSION['iterator']) && $i <= $total_iterator) {
         continue;
     }
     $ibfd->count = $i;
     /* Don't turbo Users or Teams */
     if (!isset($_SESSION['turbo']) || !($i % $recordsPerPage) || $module != 'Users' || $module != 'Teams') {
         $ibfd->clean();
         $ibfd->count = $i;
         $ibfd->generateData();
     }
     /*
     if ($i == 0) {
     foreach($ibfd->installData as $key => $val) {
     echo $key . " => " . $val . "\n";
     }
     }
     */
     $ibfd->generateId();
     //$ibfd->generateTeamSetId();
     $ibfd->createInserts();
     $ibfd->generateRelationships();
     $_SESSION['processedRecords']++;
     //flush the relatedQueries every 2000, and at the end of each page.
     if ($relQueryCount >= 2000 || $i == $total - 1) {