Object constructors shouldn't require an id if passed a $oRow object. Gets rid of

objectGetInstanceFromRow() since we can pass the row into the constructor instead.
This commit is contained in:
Alexander Nicolaysen Sørnes
2007-06-10 18:51:33 +00:00
committed by WineHQ
parent d0022decd4
commit f7b24fab9a
14 changed files with 411 additions and 357 deletions

View File

@@ -5,9 +5,9 @@ class testData_queue
var $oTestData;
var $oDistribution;
function testData_queue($iTestId = null)
function testData_queue($iTestId = null, $oRow = null)
{
$this->oTestData = new testData($iTestId);
$this->oTestData = new testData($iTestId, $oRow);
$this->oDistribution = new distribution($this->oTestData->iDistributionId);
}
@@ -132,11 +132,6 @@ class testData_queue
return $this->oTestData->objectGetHeader();
}
function objectGetInstanceFromRow($oRow)
{
return testData::objectGetInstanceFromRow($oRow);
}
function objectOutputTableRow($oObject, $sClass, $sEditLinkLabel)
{
return $this->oTestData->objectOutputTableRow($oObject, $sClass, $sEditLinkLabel);