public function updateStatistics($verbose = false) { $occurUtil = new OccurrenceUtilities(); if ($verbose) { echo '<ul>'; $occurUtil->setVerbose(true); echo '<li>General cleaning in preparation for collecting stats...</li>'; flush(); ob_flush(); } $occurUtil->generalOccurrenceCleaning(); if ($verbose) { echo '<li>Updating statistics...</li>'; flush(); ob_flush(); } $occurUtil->updateCollectionStats($this->collid, true); if ($verbose) { echo '<li>Finished updating collection statistics</li>'; flush(); ob_flush(); } }