Add TableRow::SetValign() and add its output to TableRow::GetString()

This commit is contained in:
Chris Morgan
2007-07-23 22:01:34 +00:00
committed by WineHQ
parent 1199fd1dd5
commit b62db6340b

View File

@@ -190,7 +190,7 @@ class TableRow
var $aTableCells; // array that contains the cells for the table row var $aTableCells; // array that contains the cells for the table row
var $sStyle; // CSS style to be used var $sStyle; // CSS style to be used
var $sClass; // CSS class to be used var $sClass; // CSS class to be used
var $sExtra; // extra things to put into the table row var $sValign; // valign="$sValign" - if this variable is set
var $oTableRowClick; // information about whether the table row is clickable etc var $oTableRowClick; // information about whether the table row is clickable etc
@@ -199,7 +199,7 @@ class TableRow
$this->aTableCells = array(); $this->aTableCells = array();
$this->sStyle = null; $this->sStyle = null;
$this->sClass = null; $this->sClass = null;
$this->sExtra = null; $this->sValign = null;
$this->oTableRowClick = null; $this->oTableRowClick = null;
} }
@@ -233,6 +233,11 @@ class TableRow
$this->sClass = $sClass; $this->sClass = $sClass;
} }
function SetValign($sValign)
{
$this->sValign = $sValign;
}
function SetRowClick($oTableRowClick) function SetRowClick($oTableRowClick)
{ {
$this->oTableRowClick = $oTableRowClick; $this->oTableRowClick = $oTableRowClick;
@@ -251,8 +256,8 @@ class TableRow
if($this->sStyle) if($this->sStyle)
$sStr.= " style=\"$this->sStyle\""; $sStr.= " style=\"$this->sStyle\"";
if($this->sExtra) if($this->sValign)
$sStr.= " $this->sExtra"; $sStr.= " valign=\"$this->sValign\"";
if($this->oTableRowClick) if($this->oTableRowClick)
$sStr.= " ".$this->oTableRowClick->GetString(); $sStr.= " ".$this->oTableRowClick->GetString();