summaryrefslogtreecommitdiff
path: root/inc/Form/Element.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/Form/Element.php')
-rw-r--r--inc/Form/Element.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/inc/Form/Element.php b/inc/Form/Element.php
index 3fd170a80..7938ee009 100644
--- a/inc/Form/Element.php
+++ b/inc/Form/Element.php
@@ -1,7 +1,6 @@
<?php
namespace dokuwiki\Form;
-
/**
* Class Element
*
@@ -31,6 +30,15 @@ abstract class Element {
}
/**
+ * Type of this element
+ *
+ * @return string
+ */
+ public function getType() {
+ return $this->type;
+ }
+
+ /**
* Gets or sets an attribute
*
* When no $value is given, the current content of the attribute is returned.