Add TableRow::SetValign() and add its output to TableRow::GetString()
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user