projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added modification info to swap role operation.
[timetracker.git]
/
WEB-INF
/
lib
/
form
/
TableColumn.class.php
diff --git
a/WEB-INF/lib/form/TableColumn.class.php
b/WEB-INF/lib/form/TableColumn.class.php
index
3af7b2a
..
cb4bebf
100644
(file)
--- a/
WEB-INF/lib/form/TableColumn.class.php
+++ b/
WEB-INF/lib/form/TableColumn.class.php
@@
-28,8
+28,13
@@
import('form.DefaultCellRenderer');
import('form.DefaultCellRenderer');
+// TableColumn class represents a single column in a table.
class TableColumn {
class TableColumn {
- var $mTitle = "";
+ var $colHeader = ''; // Column header.
+ var $colFooter = ''; // Column footer, example: totals in week view.
+
+// TODO: refactoring ongoing down from here.
+
var $mIndexField = "";
var $mRenderer = null;
var $mWidth = "";
var $mIndexField = "";
var $mRenderer = null;
var $mWidth = "";
@@
-37,9
+42,10
@@
class TableColumn {
var $mBgColor = "#ffffff";
var $mFgColor = "#000000";
var $mBgColor = "#ffffff";
var $mFgColor = "#000000";
- function
TableColumn($indexField, $title="",$renderer=null
) {
+ function
__construct($indexField, $header = '', $renderer = null, $footer = ''
) {
$this->mIndexField = $indexField;
$this->mIndexField = $indexField;
- $this->mTitle = $title;
+ $this->colHeader = $header;
+ $this->colFooter = $footer;
if ($renderer!=null) {
$this->mRenderer = $renderer;
} else {
if ($renderer!=null) {
$this->mRenderer = $renderer;
} else {
@@
-47,8
+53,9
@@
class TableColumn {
}
}
}
}
- function getHeader() { return $this->mTitle; }
-
+ function getHeader() { return $this->colHeader; }
+ function getFooter() { return $this->colFooter; }
+
function getField() { return $this->mIndexField; }
function setTable(&$table) { $this->mTable = &$table; }
function getField() { return $this->mIndexField; }
function setTable(&$table) { $this->mTable = &$table; }
@@
-79,4
+86,3
@@
class TableColumn {
return $this->mWidth;
}
}
return $this->mWidth;
}
}
-?>
\ No newline at end of file