diff options
Diffstat (limited to 'framework/Web/UI/WebControls/TTableCell.php')
-rw-r--r-- | framework/Web/UI/WebControls/TTableCell.php | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/framework/Web/UI/WebControls/TTableCell.php b/framework/Web/UI/WebControls/TTableCell.php index dad2e69b..a0a10fde 100644 --- a/framework/Web/UI/WebControls/TTableCell.php +++ b/framework/Web/UI/WebControls/TTableCell.php @@ -32,7 +32,7 @@ * @package System.Web.UI.WebControls
* @since 3.0
*/
-class TTableCell extends TWebControl
+class TTableCell extends TWebControl implements IDataRenderer
{
/**
* @return string tag name for the table cell
@@ -167,6 +167,32 @@ class TTableCell extends TWebControl }
/**
+ * Returns the text content of the table cell.
+ * This method is required by {@link IDataRenderer}.
+ * It is the same as {@link getText()}.
+ * @return string the text content of the table cell.
+ * @see getText
+ * @since 3.1.0
+ */
+ public function getData()
+ {
+ return $this->getText();
+ }
+
+ /**
+ * Sets the text content of the table cell.
+ * This method is required by {@link IDataRenderer}.
+ * It is the same as {@link setText()}.
+ * @param string the text content of the table cell.
+ * @see setText
+ * @since 3.1.0
+ */
+ public function setData($value)
+ {
+ $this->setText($value);
+ }
+
+ /**
* Adds attributes to renderer.
* @param THtmlWriter the renderer
*/
|