예제 #1
0
     $oP->add_comment("Output format: " . $sOutput);
     //		$oP->add_comment("Report level: ".$sReportLevel);
     $oP->add_comment("Simulate: " . ($bSimulate ? '1' : '0'));
     $oP->add_comment("Change tracking comment: " . $sComment);
     $oP->add_comment("Issues (before synchro): " . $iCountErrors);
     //		$oP->add_comment("Warnings: ".$iCountWarnings);
     $oP->add_comment("Created (before synchro): " . $iCountCreations);
     $oP->add_comment("Updated (before synchro): " . $iCountUpdates);
 }
 //////////////////////////////////////////////////
 //
 // Synchronize
 //
 if ($bSynchronize) {
     $oSynchroExec = new SynchroExecution($oDataSource, $oLoadStartDate);
     $oStatLog = $oSynchroExec->Process();
     $oP->add_comment('Synchronization---');
     $oP->add_comment('------------------');
     if ($sOutput == 'details') {
         foreach ($oStatLog->GetTraces() as $sMessage) {
             $oP->add_comment($sMessage);
         }
     }
     if ($oStatLog->Get('status') == 'error') {
         $oP->p("ERROR: " . $oStatLog->Get('last_error'));
     }
     $oP->add_comment("Replicas: " . $oStatLog->Get('stats_nb_replica_total'));
     $oP->add_comment("Replicas touched since last synchro: " . $oStatLog->Get('stats_nb_replica_seen'));
     $oP->add_comment("Objects deleted: " . $oStatLog->Get('stats_nb_obj_deleted'));
     $oP->add_comment("Objects deletion errors: " . $oStatLog->Get('stats_nb_obj_deleted_errors'));
     $oP->add_comment("Objects obsoleted: " . $oStatLog->Get('stats_nb_obj_obsoleted'));