summaryrefslogtreecommitdiff
path: root/inc/Form/FieldsetCloseElement.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2015-05-08 20:37:06 +0200
committerAndreas Gohr <andi@splitbrain.org>2015-05-08 20:37:06 +0200
commit64744a10c5578602141ae2977274eec3fcff1f44 (patch)
tree83c0f7bbac3ec45a05ce4da474aebb567ec27845 /inc/Form/FieldsetCloseElement.php
parentde19515f04567db78bd41d5bff68a88bfb8c2a22 (diff)
downloadrpg-64744a10c5578602141ae2977274eec3fcff1f44.tar.gz
rpg-64744a10c5578602141ae2977274eec3fcff1f44.tar.bz2
more elements and work on the legacy support
Diffstat (limited to 'inc/Form/FieldsetCloseElement.php')
-rw-r--r--inc/Form/FieldsetCloseElement.php64
1 files changed, 64 insertions, 0 deletions
diff --git a/inc/Form/FieldsetCloseElement.php b/inc/Form/FieldsetCloseElement.php
new file mode 100644
index 000000000..0de84e251
--- /dev/null
+++ b/inc/Form/FieldsetCloseElement.php
@@ -0,0 +1,64 @@
+<?php
+namespace dokuwiki\Form;
+
+/**
+ * Class FieldsetCloseElement
+ *
+ * Closes an open Fieldset
+ *
+ * @package dokuwiki\Form
+ */
+class FieldsetCloseElement extends TagCloseElement {
+
+ /**
+ * @param array $attributes
+ */
+ public function __construct($attributes = array()) {
+ parent::__construct('tagclose', $attributes);
+ }
+
+ /**
+ * do not call this
+ *
+ * @param $class
+ * @return void
+ * @throws \BadMethodCallException
+ */
+ public function addClass($class) {
+ throw new \BadMethodCallException('You can\t add classes to closing tag');
+ }
+
+ /**
+ * do not call this
+ *
+ * @param $id
+ * @return void
+ * @throws \BadMethodCallException
+ */
+ public function id($id = null) {
+ throw new \BadMethodCallException('You can\t add ID to closing tag');
+ }
+
+ /**
+ * do not call this
+ *
+ * @param $name
+ * @param $value
+ * @return void
+ * @throws \BadMethodCallException
+ */
+ public function attr($name, $value = null) {
+ throw new \BadMethodCallException('You can\t add attributes to closing tag');
+ }
+
+ /**
+ * do not call this
+ *
+ * @param $attributes
+ * @return void
+ * @throws \BadMethodCallException
+ */
+ public function attrs($attributes = null) {
+ throw new \BadMethodCallException('You can\t add attributes to closing tag');
+ }
+}