Php5 improvements to table code. Add some accessor methods to classes so we can make class variables private.

This commit is contained in:
Chris Morgan
2007-09-18 21:22:43 -04:00
parent e0e19c26a7
commit 5c91961d12
6 changed files with 86 additions and 64 deletions

View File

@@ -157,14 +157,15 @@ class ObjectManager
$sColor = ($iCount % 2) ? "color0" : "color1";
//TODO: we shouldn't access this method directly, should make an accessor for it
if(!$this->oTableRow->oTableRow->sClass)
// if there is no class set for a given row use the
// default one in $sColor
if(!$this->oTableRow->oTableRow->GetClass())
{
$this->oTableRow->oTableRow->SetClass($sColor);
}
// if this row is clickable, make it highlight appropirately
$oTableRowClick = $this->oTableRow->oTableRow->oTableRowClick;
$oTableRowClick = $this->oTableRow->oTableRow->GetTableRowClick();
if($oTableRowClick)
{
$oTableRowHighlight = GetStandardRowHighlight($iCount);