1
0

JSON provider for version details. Tooltips now show actual details.

This commit is contained in:
2018-01-07 21:22:09 +01:00
parent 29d65bed78
commit 4f648aa3e2
4 changed files with 130 additions and 9 deletions

View File

@ -168,4 +168,17 @@ class SQLiteReader
sort($version);
return $version;
}
public function getAllRefsForFile($sha1)
{
$sql = 'SELECT curef FROM updates u WHERE u.file_sha1=?';
$stmt = $this->pdo->prepare($sql);
$ok = $stmt->execute(array($sha1));
$result = $stmt->fetchAll(\PDO::FETCH_ASSOC);
$refs = array();
foreach ($result as $row) {
$refs[] = $row['curef'];
}
return $refs;
}
}