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
@@ -10,13 +10,13 @@ class application_queue
|
||||
var $oApp;
|
||||
var $oVendor;
|
||||
|
||||
function application_queue($iAppId = null)
|
||||
function application_queue($iAppId = null, $oRow = null)
|
||||
{
|
||||
$this->oApp = new application($iAppId);
|
||||
$this->oApp = new application($iAppId, $oRow);
|
||||
|
||||
/* If this is an existing application then there must be a version
|
||||
accompanying it */
|
||||
if($iAppId)
|
||||
if($this->oApp->iAppId)
|
||||
{
|
||||
/* Normal users do not get a aVersionsIds property, so we have to fetch
|
||||
the versionId manually. Normal users only have access to rejected
|
||||
@@ -302,11 +302,6 @@ class application_queue
|
||||
return $this->oApp->objectGetHeader();
|
||||
}
|
||||
|
||||
function objectGetInstanceFromRow($oRow)
|
||||
{
|
||||
return application::objectGetInstanceFromRow($oRow);
|
||||
}
|
||||
|
||||
function objectOutputTableRow($oObject, $sClass, $sEditLinkLabel)
|
||||
{
|
||||
return $this->oApp->objectOutputTableRow($oObject, $sClass, $sEditLinkLabel);
|
||||
|
||||
Reference in New Issue
Block a user