summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxue <>2008-03-12 18:59:53 +0000
committerxue <>2008-03-12 18:59:53 +0000
commit62cdfb712d0132c8e4463c25ad3291e84cfbce51 (patch)
treeac19a8c82cf48b696e09ca28ac5cca8d1d534ca9
parent7c763368b083fdc89cf4269cb5d8cff1d643684b (diff)
Added THtmlElement.
-rw-r--r--.gitattributes1
-rw-r--r--HISTORY1
-rw-r--r--framework/Web/UI/WebControls/THtmlElement.php46
3 files changed, 48 insertions, 0 deletions
diff --git a/.gitattributes b/.gitattributes
index e440bbce..06e5a832 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -2607,6 +2607,7 @@ framework/Web/UI/WebControls/TFont.php -text
framework/Web/UI/WebControls/THead.php -text
framework/Web/UI/WebControls/THiddenField.php -text
framework/Web/UI/WebControls/THtmlArea.php -text
+framework/Web/UI/WebControls/THtmlElement.php -text
framework/Web/UI/WebControls/THyperLink.php -text
framework/Web/UI/WebControls/THyperLinkColumn.php -text
framework/Web/UI/WebControls/TImage.php -text
diff --git a/HISTORY b/HISTORY
index 7d70c7af..809d0a45 100644
--- a/HISTORY
+++ b/HISTORY
@@ -35,6 +35,7 @@ ENH: TParameterModule added caching support (Qiang)
ENH: Added TAuthManager.switchUser() (Qiang)
NEW: Added TDbLogRoute (Qiang)
NEW: Added TDataRenderer and TItemDataRenderer (Qiang)
+NEW: Added THtmlElement (Qiang)
NEW: Ticket#544 - Added TXCache (Wei)
NEW: Ticket#729 - Added TActivePager (Christophe)
NEW: Ticket#791 - Added TFirebugLogRoute (Christophe)
diff --git a/framework/Web/UI/WebControls/THtmlElement.php b/framework/Web/UI/WebControls/THtmlElement.php
new file mode 100644
index 00000000..a9b4d786
--- /dev/null
+++ b/framework/Web/UI/WebControls/THtmlElement.php
@@ -0,0 +1,46 @@
+<?php
+/**
+ * THtmlElement class file.
+ *
+ * @author Qiang Xue <qiang.xue@gmail.com>
+ * @link http://www.pradosoft.com/
+ * @copyright Copyright &copy; 2005-2008 PradoSoft
+ * @license http://www.pradosoft.com/license/
+ * @version $Id$
+ * @package System.Web.UI.WebControls
+ */
+
+Prado::using('System.Web.UI.WebControls.TWebControl');
+
+/**
+ * THtmlElement class.
+ *
+ * THtmlElement represents a generic HTML element whose tag name is specified
+ * via {@link setTagName TagName} property. Because THtmlElement extends from
+ * {@link TWebControl}, it enjoys all its functionalities.
+ *
+ * @author Qiang Xue <qiang.xue@gmail.com>
+ * @version $Id$
+ * @package System.Web.UI.WebControls
+ * @since 3.1.2
+ */
+class THtmlElement extends TWebControl
+{
+ private $_tagName='span';
+
+ /**
+ * @return string the tag name of this control. Defaults to 'span'.
+ */
+ public function getTagName()
+ {
+ return $this->_tagName;
+ }
+
+ /**
+ * @param string the tag name of this control.
+ */
+ public function setTagName($value)
+ {
+ $this->_tagName=$value;
+ }
+} \ No newline at end of file