/**
  * (a) Stabilize inclusions in Parser output
  * (b) Load all of the "review time" versions of template/files from $frev
  * (c) Load their stable version counterparts (avoids DB hits)
  * Note: Used when calling FlaggedRevs::parseStableText().
  * @param FlaggedRevision $frev
  * @return void
  */
 public function stabilizeParserOutput(FlaggedRevision $frev)
 {
     $tStbVersions = $fStbVersions = array();
     // stable versions
     $tRevVersions = $frev->getTemplateVersions();
     $fRevVersions = $frev->getFileVersions();
     # We can preload *most* of the stable version IDs the parser will need...
     if (FlaggedRevs::inclusionSetting() == FR_INCLUDES_STABLE) {
         $tStbVersions = $frev->getStableTemplateVersions();
         $fStbVersions = $frev->getStableFileVersions();
     }
     $this->setReviewedVersions($tRevVersions, $fRevVersions);
     $this->setStableVersionCache($tStbVersions, $fStbVersions);
 }