public function generate($dbLog) { $summary = $this->logParser->getExcerpt(true); $log = $this->getLog(); $result = $this->generateHTML($summary, $log); GzipUtils::writeToDb($dbLog, $result); }
public function generate($log) { $file = GzipUtils::getLines($this->rawSummary); $lines = array(); foreach ($file as $line) { $this->processLine($lines, $line); } if ($this->hasLeak) { $lines[] = "<a href=\"php/getLeakAnalysis.php?id=" . $_GET["id"] . "\" target=\"_blank\">Analyze the leak.</a>"; } GzipUtils::writeToDb($log, implode("", $lines)); }
public function generate($log) { GzipUtils::writeToDb($log, $this->getExcerpt()); }