diff options
author | xue <> | 2007-10-06 21:05:39 +0000 |
---|---|---|
committer | xue <> | 2007-10-06 21:05:39 +0000 |
commit | 5892bb8bb76f7e4addd14da5dd9c5a68b6c59db9 (patch) | |
tree | 36d9230dedb1365862faca8718ad6e0d86582b6f /framework/Web/UI/WebControls/TDataRenderer.php | |
parent | b9b876ae5968ca65c4b3cd66f3e92ae4e69cab69 (diff) |
Added TDataRenderer and TItemDataRenderer
Diffstat (limited to 'framework/Web/UI/WebControls/TDataRenderer.php')
-rw-r--r-- | framework/Web/UI/WebControls/TDataRenderer.php | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/framework/Web/UI/WebControls/TDataRenderer.php b/framework/Web/UI/WebControls/TDataRenderer.php new file mode 100644 index 00000000..c1efc482 --- /dev/null +++ b/framework/Web/UI/WebControls/TDataRenderer.php @@ -0,0 +1,53 @@ +<?php
+/**
+ * TDataRenderer class file
+ *
+ * @author Qiang Xue <qiang.xue@gmail.com>
+ * @link http://www.pradosoft.com/
+ * @copyright Copyright © 2007 PradoSoft
+ * @license http://www.pradosoft.com/license/
+ * @version $Id$
+ * @package System.Web.UI.WebControls
+ * @since 3.1.2
+ */
+
+/**
+ * TDataRenderer class
+ *
+ * TDataRenderer is the convenient base class for template-based renderer controls.
+ * It extends {@link TTemplateControl} and implements the methods required
+ * by the {@link IDataRenderer} interface.
+ *
+ * The following property is provided by TDataRenderer:
+ * - {@link getData Data}: data associated with this renderer.
+
+ * @author Qiang Xue <qiang.xue@gmail.com>
+ * @version $Id$
+ * @package System.Web.UI.WebControls
+ * @since 3.1.2
+ */
+abstract class TDataRenderer extends TTemplateControl implements IDataRenderer
+{
+ /**
+ * @var mixed data associated with this renderer
+ */
+ private $_data;
+
+ /**
+ * @return mixed data associated with the item
+ */
+ public function getData()
+ {
+ return $this->_data;
+ }
+
+ /**
+ * @param mixed data to be associated with the item
+ */
+ public function setData($value)
+ {
+ $this->_data=$value;
+ }
+}
+
+?>
\ No newline at end of file |