ConflictDetector::clearConflictsForInstance($conflict['CommentId1']); ///clear the conflicts } } //////re-insert them into the table ConflictDetector::recordUnresolvedConflicts($new_conflicts); } /** * Remove all the current conflicts for the givent instrument/visit_label * And re-insert them */ if ($change_all) { foreach ($commentids as $cid) { ConflictDetector::clearConflictsForInstance($cid['CommentID']); $diff = ConflictDetector::detectConflictsForCommentIds($test_name, $cid['CommentID'], $cid['DDECommentID']); ConflictDetector::recordUnresolvedConflicts($diff); } } } } else { die("the instrument is not set or there are no commentids \n"); } } /** *Get the commentids for the given instrument, candidate and visit_label * * @param String $test_name The instrument been searched * @param string $visit_label The visit_label been searched * @param string $candid The candid been searched * * @return array $commentids An array of commentids found