diff options
-rw-r--r-- | .gitattributes | 6 | ||||
-rw-r--r-- | framework/Web/UI/WebControls/THeader1.php | 36 | ||||
-rw-r--r-- | framework/Web/UI/WebControls/THeader2.php | 36 | ||||
-rw-r--r-- | framework/Web/UI/WebControls/THeader3.php | 36 | ||||
-rw-r--r-- | framework/Web/UI/WebControls/THeader4.php | 36 | ||||
-rw-r--r-- | framework/Web/UI/WebControls/THeader5.php | 36 | ||||
-rw-r--r-- | framework/Web/UI/WebControls/THeader6.php | 36 | ||||
-rw-r--r-- | framework/Web/UI/WebControls/THtmlElement.php | 2 |
8 files changed, 223 insertions, 1 deletions
diff --git a/.gitattributes b/.gitattributes index 59c785b5..37da8a90 100644 --- a/.gitattributes +++ b/.gitattributes @@ -2833,6 +2833,12 @@ framework/Web/UI/WebControls/TExpression.php -text framework/Web/UI/WebControls/TFileUpload.php -text framework/Web/UI/WebControls/TFont.php -text framework/Web/UI/WebControls/THead.php -text +framework/Web/UI/WebControls/THeader1.php -text +framework/Web/UI/WebControls/THeader2.php -text +framework/Web/UI/WebControls/THeader3.php -text +framework/Web/UI/WebControls/THeader4.php -text +framework/Web/UI/WebControls/THeader5.php -text +framework/Web/UI/WebControls/THeader6.php -text framework/Web/UI/WebControls/THiddenField.php -text framework/Web/UI/WebControls/THtmlArea.php -text framework/Web/UI/WebControls/THtmlElement.php -text 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 © 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 © 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 © 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 © 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 © 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 © 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;
}
|