Make votes version specific
This commit is contained in:
committed by
WineHQ
parent
625a8e2842
commit
f3dae72762
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user