1
0
This commit is contained in:
2018-01-21 19:07:43 +01:00
parent 28ae8beb2d
commit f373b208f6
15 changed files with 435 additions and 11 deletions

View File

@@ -66,11 +66,9 @@ class ExtendedGitGraph
$_SESSION[self::PROGRESS_SESSION_COOKIE] .= $txt . "\r\n";
session_commit();
}
else if ($this->outputMode === self::OUT_STDOUT)
{
print $txt;
print "\r\n";
}
print $txt;
print "\r\n";
$logfile = Utils::sharpFormat($this->logFilePath, ['num'=>'']);
file_put_contents($logfile, $txt.PHP_EOL , FILE_APPEND | LOCK_EX);
@@ -181,4 +179,11 @@ class ExtendedGitGraph
{
return $this->renderedHTML;
}
public function getAll()
{
$all = '';
foreach ($this->get() as $year => $html) $all .= $html . "\n";
return $all;
}
}