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
@@ -6,12 +6,15 @@ class version_queue
|
||||
var $oVersion;
|
||||
var $oDownloadUrl;
|
||||
|
||||
function version_queue($iVersionId = null)
|
||||
function version_queue($iVersionId = null, $oRow = null)
|
||||
{
|
||||
$this->oVersion = new version($iVersionId);
|
||||
$this->oVersion = new version($iVersionId, $oRow);
|
||||
$iTestingId = null;
|
||||
$iDownloadUrlId = null;
|
||||
|
||||
if(!$iVersionId)
|
||||
$iVersionId = $this->oVersion->iVersionId;
|
||||
|
||||
if($iVersionId)
|
||||
{
|
||||
$iTestingId = testData::getNewestTestIdFromVersionId($iVersionId,
|
||||
@@ -163,11 +166,6 @@ class version_queue
|
||||
return $this->oVersion->objectGetHeader();
|
||||
}
|
||||
|
||||
function objectGetInstanceFromRow($oRow)
|
||||
{
|
||||
return version::objectGetInstanceFromRow($oRow);
|
||||
}
|
||||
|
||||
function objectOutputTableRow($oObject, $sClass, $sEditLinkLabel)
|
||||
{
|
||||
return $this->oVersion->objectOutputTableRow($oObject, $sClass, $sEditLinkLabel);
|
||||
|
||||
Reference in New Issue
Block a user