Make objectGetTableRow() return a TableRow class instance. Added accessors to set the

appropriate parameters in the TableRow class. Removed some unused parameters from the TableRow
class.
This commit is contained in:
Chris Morgan
2007-07-02 00:35:17 +00:00
committed by WineHQ
parent 15cd979264
commit 62bfb16016
9 changed files with 52 additions and 30 deletions

View File

@@ -460,10 +460,12 @@ class distribution {
"<a href=\"$this->sUrl\">$this->sUrl</a>",
array(sizeof($this->aTestingIds), "align=\"right\""));
// enable the 'delete' action if this distribution has no testing results
$bDeleteLink = sizeof($this->aTestingIds) ? FALSE : TRUE;
// enable the 'delete' action if this distribution has no testing results
$bDeleteLink = sizeof($this->aTestingIds) ? FALSE : TRUE;
return array($aCells, null, $bDeleteLink, null);
$oTableRow = new TableRow($aCells);
$oTableRow->SetRowHasDeleteLink($bDeleteLink);
return $oTableRow;
}
// Whether the user has permission to edit distributions