diff options
Diffstat (limited to 'src/XHtml/XHtmlButton.php')
-rw-r--r-- | src/XHtml/XHtmlButton.php | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/XHtml/XHtmlButton.php b/src/XHtml/XHtmlButton.php new file mode 100644 index 00000000..4c2de918 --- /dev/null +++ b/src/XHtml/XHtmlButton.php @@ -0,0 +1,24 @@ +<?php + +/** + * PHPPgAdmin6 + */ + +namespace PHPPgAdmin\XHtml; + +/** + * Class to render button elements. + */ +class XHtmlButton extends XHtmlElement +{ + public function __construct($name, $text = null) + { + parent::__construct(); + + $this->set_attribute('name', $name); + + if ($text) { + $this->set_text($text); + } + } +} |