Make votes version specific

This commit is contained in:
Alexander Nicolaysen Sørnes
2007-01-21 18:06:53 +00:00
committed by WineHQ
parent 625a8e2842
commit f3dae72762
8 changed files with 84 additions and 66 deletions

View File

@@ -668,8 +668,8 @@ class Version {
return $errors;
}
/* retrieves values from $aValues that were output by OutputEditor() */
/* $aValues can be $_REQUEST or any array with the values from OutputEditor() */
/* retrieves values from $aValues that were output by outputEditor() */
/* $aValues can be $_REQUEST or any array with the values from outputEditor() */
function GetOutputEditorValues($aValues)
{
$this->iAppId = $aValues['iAppId'];
@@ -930,6 +930,24 @@ class Version {
return $ob->versionName;
}
function fullName($iVersionId)
{
if(!$iVersionId)
return FALSE;
$hResult = query_parameters(
"SELECT appFamily.appName, appVersion.versionName
FROM appVersion, appFamily WHERE appVersion.appId = appFamily.appId
AND versionId = '?'",
$iVersionId);
if(!$hResult || !mysql_num_rows($hResult))
return FALSE;
$oRow = mysql_fetch_object($hResult);
return "$oRow->appName $oRow->versionName";
}
function showList($hResult)
{
//show applist