summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorjavalizard <>2010-04-18 02:43:10 +0000
committerjavalizard <>2010-04-18 02:43:10 +0000
commitc8b27e28e32cd8a93c2203b2c391d0b8e8ecf86a (patch)
treec40321e85699920c408649d5c902158f86dadd8d /framework
parent826d1ea2931d2af3fdc0906ad6f0c968d26a8856 (diff)
Added the THeader1-6, and fixed up the THtmlElement a touch.
Diffstat (limited to 'framework')
-rw-r--r--framework/Web/UI/WebControls/THeader1.php36
-rw-r--r--framework/Web/UI/WebControls/THeader2.php36
-rw-r--r--framework/Web/UI/WebControls/THeader3.php36
-rw-r--r--framework/Web/UI/WebControls/THeader4.php36
-rw-r--r--framework/Web/UI/WebControls/THeader5.php36
-rw-r--r--framework/Web/UI/WebControls/THeader6.php36
-rw-r--r--framework/Web/UI/WebControls/THtmlElement.php2
7 files changed, 217 insertions, 1 deletions
diff --git a/framework/Web/UI/WebControls/THeader1.php b/framework/Web/UI/WebControls/THeader1.php
new file mode 100644
index 00000000..a4d29267
--- /dev/null
+++ b/framework/Web/UI/WebControls/THeader1.php
@@ -0,0 +1,36 @@
+<?php
+/**
+ * THeader1 class file
+ *
+ * @author Brad Anderson <javalizard@gmail.com>
+ * @link http://www.pradosoft.com/
+ * @copyright Copyright &copy; 2005-2010 PradoSoft
+ * @license http://www.pradosoft.com/license/
+ * @version $Id: THeader1.php 2590 2008-12-10 11:34:24Z carlgmathisen $
+ * @package System.Web.UI.WebControls
+ */
+
+/**
+ * THeader1 class
+ *
+ * This is a simple class to enable your application to have headers but then have your
+ * theme be able to redefine the TagName
+ * This is also useful for the {@link TWebControlDecorator} (used by themes).
+ *
+ * @author Brad Anderson <javalizard@gmail.com>
+ * @version $Id: THeader1.php 2541 2008-10-21 15:05:13Z javalizard $
+ * @package System.Web.UI.WebControls
+ * @since 3.2a
+ */
+
+class THeader1 extends THtmlElement {
+
+ /**
+ * @return string tag name
+ */
+ protected function getDefaultTagName()
+ {
+ return 'h1';
+ }
+
+}
diff --git a/framework/Web/UI/WebControls/THeader2.php b/framework/Web/UI/WebControls/THeader2.php
new file mode 100644
index 00000000..62cde55b
--- /dev/null
+++ b/framework/Web/UI/WebControls/THeader2.php
@@ -0,0 +1,36 @@
+<?php
+/**
+ * THeader2 class file
+ *
+ * @author Brad Anderson <javalizard@gmail.com>
+ * @link http://www.pradosoft.com/
+ * @copyright Copyright &copy; 2005-2010 PradoSoft
+ * @license http://www.pradosoft.com/license/
+ * @version $Id: THeader2.php 2590 2008-12-10 11:34:24Z carlgmathisen $
+ * @package System.Web.UI.WebControls
+ */
+
+/**
+ * THeader2 class
+ *
+ * This is a simple class to enable your application to have headers but then have your
+ * theme be able to redefine the TagName
+ * This is also useful for the {@link TWebControlDecorator} (used by themes).
+ *
+ * @author Brad Anderson <javalizard@gmail.com>
+ * @version $Id: THeader2.php 2541 2008-10-21 15:05:13Z javalizard $
+ * @package System.Web.UI.WebControls
+ * @since 3.2a
+ */
+
+class THeader2 extends THtmlElement {
+
+ /**
+ * @return string tag name
+ */
+ protected function getDefaultTagName()
+ {
+ return 'h2';
+ }
+
+}
diff --git a/framework/Web/UI/WebControls/THeader3.php b/framework/Web/UI/WebControls/THeader3.php
new file mode 100644
index 00000000..c12ed6d6
--- /dev/null
+++ b/framework/Web/UI/WebControls/THeader3.php
@@ -0,0 +1,36 @@
+<?php
+/**
+ * THeader3 class file
+ *
+ * @author Brad Anderson <javalizard@gmail.com>
+ * @link http://www.pradosoft.com/
+ * @copyright Copyright &copy; 2005-2010 PradoSoft
+ * @license http://www.pradosoft.com/license/
+ * @version $Id: THeader3.php 2590 2008-12-10 11:34:24Z carlgmathisen $
+ * @package System.Web.UI.WebControls
+ */
+
+/**
+ * THeader3 class
+ *
+ * This is a simple class to enable your application to have headers but then have your
+ * theme be able to redefine the TagName
+ * This is also useful for the {@link TWebControlDecorator} (used by themes).
+ *
+ * @author Brad Anderson <javalizard@gmail.com>
+ * @version $Id: THeader3.php 2541 2008-10-21 15:05:13Z javalizard $
+ * @package System.Web.UI.WebControls
+ * @since 3.2a
+ */
+
+class THeader3 extends THtmlElement {
+
+ /**
+ * @return string tag name
+ */
+ protected function getDefaultTagName()
+ {
+ return 'h3';
+ }
+
+}
diff --git a/framework/Web/UI/WebControls/THeader4.php b/framework/Web/UI/WebControls/THeader4.php
new file mode 100644
index 00000000..d673d4c2
--- /dev/null
+++ b/framework/Web/UI/WebControls/THeader4.php
@@ -0,0 +1,36 @@
+<?php
+/**
+ * THeader4 class file
+ *
+ * @author Brad Anderson <javalizard@gmail.com>
+ * @link http://www.pradosoft.com/
+ * @copyright Copyright &copy; 2005-2010 PradoSoft
+ * @license http://www.pradosoft.com/license/
+ * @version $Id: THeader4.php 2590 2008-12-10 11:34:24Z carlgmathisen $
+ * @package System.Web.UI.WebControls
+ */
+
+/**
+ * THeader4 class
+ *
+ * This is a simple class to enable your application to have headers but then have your
+ * theme be able to redefine the TagName
+ * This is also useful for the {@link TWebControlDecorator} (used by themes).
+ *
+ * @author Brad Anderson <javalizard@gmail.com>
+ * @version $Id: THeader4.php 2541 2008-10-21 15:05:13Z javalizard $
+ * @package System.Web.UI.WebControls
+ * @since 3.2
+ */
+
+class THeader4 extends THtmlElement {
+
+ /**
+ * @return string tag name
+ */
+ protected function getDefaultTagName()
+ {
+ return 'h4';
+ }
+
+}
diff --git a/framework/Web/UI/WebControls/THeader5.php b/framework/Web/UI/WebControls/THeader5.php
new file mode 100644
index 00000000..59baef91
--- /dev/null
+++ b/framework/Web/UI/WebControls/THeader5.php
@@ -0,0 +1,36 @@
+<?php
+/**
+ * THeader5 class file
+ *
+ * @author Brad Anderson <javalizard@gmail.com>
+ * @link http://www.pradosoft.com/
+ * @copyright Copyright &copy; 2005-2010 PradoSoft
+ * @license http://www.pradosoft.com/license/
+ * @version $Id: THeader5.php 2590 2008-12-10 11:34:24Z carlgmathisen $
+ * @package System.Web.UI.WebControls
+ */
+
+/**
+ * THeader5 class
+ *
+ * This is a simple class to enable your application to have headers but then have your
+ * theme be able to redefine the TagName
+ * This is also useful for the {@link TWebControlDecorator} (used by themes).
+ *
+ * @author Brad Anderson <javalizard@gmail.com>
+ * @version $Id: THeader5.php 2541 2008-10-21 15:05:13Z javalizard $
+ * @package System.Web.UI.WebControls
+ * @since 3.2
+ */
+
+class THeader5 extends THtmlElement {
+
+ /**
+ * @return string tag name
+ */
+ protected function getDefaultTagName()
+ {
+ return 'h5';
+ }
+
+}
diff --git a/framework/Web/UI/WebControls/THeader6.php b/framework/Web/UI/WebControls/THeader6.php
new file mode 100644
index 00000000..3e3e978a
--- /dev/null
+++ b/framework/Web/UI/WebControls/THeader6.php
@@ -0,0 +1,36 @@
+<?php
+/**
+ * THeader6 class file
+ *
+ * @author Brad Anderson <javalizard@gmail.com>
+ * @link http://www.pradosoft.com/
+ * @copyright Copyright &copy; 2005-2010 PradoSoft
+ * @license http://www.pradosoft.com/license/
+ * @version $Id: THeader6.php 2590 2008-12-10 11:34:24Z carlgmathisen $
+ * @package System.Web.UI.WebControls
+ */
+
+/**
+ * THeader6 class
+ *
+ * This is a simple class to enable your application to have headers but then have your
+ * theme be able to redefine the TagName
+ * This is also useful for the {@link TWebControlDecorator} (used by themes).
+ *
+ * @author Brad Anderson <javalizard@gmail.com>
+ * @version $Id: THeader6.php 2541 2008-10-21 15:05:13Z javalizard $
+ * @package System.Web.UI.WebControls
+ * @since 3.2
+ */
+
+class THeader6 extends THtmlElement {
+
+ /**
+ * @return string tag name
+ */
+ protected function getDefaultTagName()
+ {
+ return 'h6';
+ }
+
+}
diff --git a/framework/Web/UI/WebControls/THtmlElement.php b/framework/Web/UI/WebControls/THtmlElement.php
index 856db4fd..96fd1a5a 100644
--- a/framework/Web/UI/WebControls/THtmlElement.php
+++ b/framework/Web/UI/WebControls/THtmlElement.php
@@ -41,7 +41,7 @@ class THtmlElement extends TWebControl
{
if($this->_tagName !== null) return $this->_tagName;
- $this->_tagName = $this->getDefaultTag();
+ $this->_tagName = $this->getDefaultTagName();
return $this->_tagName;
}