appdb/include table.php

WineHQ wineowner at wine.codeweavers.com
Mon Jul 23 17:01:34 CDT 2007


ChangeSet ID:	31267
CVSROOT:	/opt/cvs-commit
Module name:	appdb
Changes by:	wineowner at winehq.org	2007/07/23 17:01:34

Modified files:
	include        : table.php 

Log message:
	Chris Morgan <cmorgan at alum.wpi.edu>
	Add TableRow::SetValign() and add its output to TableRow::GetString()

Patch: http://cvs.winehq.org/patch.py?id=31267

Old revision  New revision  Changes     Path
 1.2           1.3           +9 -4       appdb/include/table.php

Index: appdb/include/table.php
diff -u -p appdb/include/table.php:1.2 appdb/include/table.php:1.3
--- appdb/include/table.php:1.2	23 Jul 2007 22: 1:34 -0000
+++ appdb/include/table.php	23 Jul 2007 22: 1:34 -0000
@@ -190,7 +190,7 @@ class TableRow
     var $aTableCells; // array that contains the cells for the table row
     var $sStyle; // CSS style 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
 
@@ -199,7 +199,7 @@ class TableRow
       $this->aTableCells = array();
       $this->sStyle = null;
       $this->sClass = null;
-      $this->sExtra = null;
+      $this->sValign = null;
       $this->oTableRowClick = null;
     }
 
@@ -233,6 +233,11 @@ class TableRow
       $this->sClass = $sClass;
     }
 
+    function SetValign($sValign)
+    {
+      $this->sValign = $sValign;
+    }
+
     function SetRowClick($oTableRowClick)
     {
       $this->oTableRowClick = $oTableRowClick;
@@ -251,8 +256,8 @@ class TableRow
       if($this->sStyle)
         $sStr.= " style=\"$this->sStyle\"";
 
-      if($this->sExtra)
-        $sStr.= " $this->sExtra";
+      if($this->sValign)
+        $sStr.= " valign=\"$this->sValign\"";
 
       if($this->oTableRowClick)
         $sStr.= " ".$this->oTableRowClick->GetString();



More information about the wine-cvs mailing list