Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/HuasoFoundries/phpPgAdmin6.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/XHtml/XHtmlButton.php')
-rw-r--r--src/XHtml/XHtmlButton.php24
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);
+ }
+ }
+}