Application view should list the number of test results for each version, this lets the appdb

user see which versions have the most feedback
This commit is contained in:
Chris Morgan
2007-07-11 02:38:09 +00:00
committed by WineHQ
parent 97f598b45e
commit 9831c1f762
2 changed files with 17 additions and 0 deletions

View File

@@ -777,6 +777,21 @@ class testData{
return $sReturn;
}
// return the number of test data entries for a particular version id
function get_testdata_count_for_versionid($iVersionId)
{
$sQuery = "SELECT count(*) as cnt
FROM testResults
WHERE versionId = '?'
AND
queued = '?';";
$hResult = query_parameters($sQuery, $iVersionId, 'false');
$oRow = mysql_fetch_object($hResult);
return $oRow->cnt;
}
function objectGetEntriesCount($bQueued, $bRejected)
{
$oTest = new testData();