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:
committed by
WineHQ
parent
d0022decd4
commit
f7b24fab9a
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user