Let objectManager output table headers. A class returns an array of header cells and then
the objectManager adds an edit column if appropriate.
This commit is contained in:
committed by
WineHQ
parent
80e30b65a8
commit
ed7026be6e
@@ -167,17 +167,14 @@ class Vendor {
|
||||
return $hResult;
|
||||
}
|
||||
|
||||
function objectOutputHeader($sClass = "")
|
||||
function objectGetHeader()
|
||||
{
|
||||
$sCells = array(
|
||||
$aCells = array(
|
||||
"Name",
|
||||
"Website",
|
||||
array("Linked apps", "align=\"right\""));
|
||||
|
||||
if(vendor::canEdit())
|
||||
$sCells[sizeof($sCells)] = "Action";
|
||||
|
||||
echo html_tr($sCells, $sClass);
|
||||
return $aCells;
|
||||
}
|
||||
|
||||
function objectGetInstanceFromRow($oRow)
|
||||
|
||||
Reference in New Issue
Block a user