summaryrefslogtreecommitdiff
path: root/framework/Web/UI/WebControls/TDataGrid.php
diff options
context:
space:
mode:
authorxue <>2007-02-05 21:55:51 +0000
committerxue <>2007-02-05 21:55:51 +0000
commit81b323cf3d27949a5c78d44bd016044be3197b6c (patch)
tree73b3cb8f214b96237812e33ed4f1b0637172ae53 /framework/Web/UI/WebControls/TDataGrid.php
parent0aaa8b5ef02479653c0a532d9249b423ef34c7ca (diff)
Added renderer feature to TDataGrid.
Diffstat (limited to 'framework/Web/UI/WebControls/TDataGrid.php')
-rw-r--r--framework/Web/UI/WebControls/TDataGrid.php30
1 files changed, 26 insertions, 4 deletions
diff --git a/framework/Web/UI/WebControls/TDataGrid.php b/framework/Web/UI/WebControls/TDataGrid.php
index 90042b12..65717d71 100644
--- a/framework/Web/UI/WebControls/TDataGrid.php
+++ b/framework/Web/UI/WebControls/TDataGrid.php
@@ -1073,8 +1073,8 @@ class TDataGrid extends TBaseDataList implements INamingContainer
$cell=new TTableCell;
if(($id=$column->getID())!=='')
$item->registerObject($id,$cell);
- $column->initializeCell($cell,$index,$itemType);
$cells->add($cell);
+ $column->initializeCell($cell,$index,$itemType);
$index++;
}
}
@@ -1777,7 +1777,7 @@ class TDataGridItem extends TTableRow implements INamingContainer
* value of the data item
* @var mixed
*/
- private $_dataItem=null;
+ private $_data=null;
/**
* Constructor.
@@ -1829,18 +1829,40 @@ class TDataGridItem extends TTableRow implements INamingContainer
/**
* @return mixed data associated with the item
+ * @since 3.1.0
+ */
+ public function getData()
+ {
+ return $this->_data;
+ }
+
+ /**
+ * @param mixed data to be associated with the item
+ * @since 3.1.0
+ */
+ public function setData($value)
+ {
+ $this->_data=$value;
+ }
+
+ /**
+ * This property is deprecated since v3.1.0.
+ * @return mixed data associated with the item
+ * @deprecated deprecated since v3.1.0. Use {@link getData} instead.
*/
public function getDataItem()
{
- return $this->_dataItem;
+ return $this->getData();
}
/**
+ * This property is deprecated since v3.1.0.
* @param mixed data to be associated with the item
+ * @deprecated deprecated since version 3.1.0. Use {@link setData} instead.
*/
public function setDataItem($value)
{
- $this->_dataItem=$value;
+ return $this->setData($value);
}
/**