appdb/include testData.php version.php

WineHQ wineowner at wine.codeweavers.com
Sun Apr 1 17:34:33 CDT 2007


ChangeSet ID:	31023
CVSROOT:	/opt/cvs-commit
Module name:	appdb
Changes by:	wineowner at winehq.org	2007/04/01 17:34:33

Modified files:
	include        : testData.php version.php 

Log message:
	Chris Morgan <cmorgan at alum.wpi.edu>
	Rename testData::get_test_for_versionid() to testData::getNewestTestIdFromVersionId() so the
	name of the method better describes the value the method is returning

Patch: http://cvs.winehq.org/patch.py?id=31023

Old revision  New revision  Changes     Path
 1.36          1.37          +1 -1       appdb/include/testData.php
 1.109         1.110         +1 -1       appdb/include/version.php

Index: appdb/include/testData.php
diff -u -p appdb/include/testData.php:1.36 appdb/include/testData.php:1.37
--- appdb/include/testData.php:1.36	1 Apr 2007 22:34:33 -0000
+++ appdb/include/testData.php	1 Apr 2007 22:34:33 -0000
@@ -466,7 +466,7 @@ class testData{
     }
 
     /* retrieve the latest test result for a given version id */
-    function get_test_for_versionid($iVersionId)
+    function getNewestTestIdFromVersionId($iVersionId)
     {
         $sQuery = "SELECT testingId FROM testResults WHERE
                 versionId = '?'
Index: appdb/include/version.php
diff -u -p appdb/include/version.php:1.109 appdb/include/version.php:1.110
--- appdb/include/version.php:1.109	1 Apr 2007 22:34:33 -0000
+++ appdb/include/version.php	1 Apr 2007 22:34:33 -0000
@@ -881,7 +881,7 @@ class Version {
         if(!$oTest->iTestingId)
         {
             /* fetch a new test id for this version */
-            $iTestingId = testData::get_test_for_versionid($this->iVersionId);
+            $iTestingId = testData::getNewestTestIdFromVersionId($this->iVersionId);
             $oTest = new testData($iTestingId);
         }
 



More information about the wine-cvs mailing list