diff options
author | Andreas Gohr <andi@splitbrain.org> | 2015-05-11 20:31:16 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2015-05-11 20:31:16 +0200 |
commit | 1f5d8b65a983fe0914971ee0bb4e5e58cbf8c8a7 (patch) | |
tree | 4413a5f46730fb951305a9dd214c696f13acf406 /inc/Form/FieldsetCloseElement.php | |
parent | 370c645068595c6750cee2b38eb96aeaac3a9dbb (diff) | |
download | rpg-1f5d8b65a983fe0914971ee0bb4e5e58cbf8c8a7.tar.gz rpg-1f5d8b65a983fe0914971ee0bb4e5e58cbf8c8a7.tar.bz2 |
balance fieldsets
Diffstat (limited to 'inc/Form/FieldsetCloseElement.php')
-rw-r--r-- | inc/Form/FieldsetCloseElement.php | 46 |
1 files changed, 6 insertions, 40 deletions
diff --git a/inc/Form/FieldsetCloseElement.php b/inc/Form/FieldsetCloseElement.php index 0de84e251..8f26717aa 100644 --- a/inc/Form/FieldsetCloseElement.php +++ b/inc/Form/FieldsetCloseElement.php @@ -14,51 +14,17 @@ class FieldsetCloseElement extends TagCloseElement { * @param array $attributes */ public function __construct($attributes = array()) { - parent::__construct('tagclose', $attributes); + parent::__construct('', $attributes); + $this->type = 'fieldsetclose'; } - /** - * 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 + * The HTML representation of this element * - * @param $attributes - * @return void - * @throws \BadMethodCallException + * @return string */ - public function attrs($attributes = null) { - throw new \BadMethodCallException('You can\t add attributes to closing tag'); + public function toHTML() { + return '</fieldset>'; } } |