1*64744a10SAndreas Gohr<?php 2*64744a10SAndreas Gohrnamespace dokuwiki\Form; 3*64744a10SAndreas Gohr 4*64744a10SAndreas Gohr/** 5*64744a10SAndreas Gohr * Class FieldsetCloseElement 6*64744a10SAndreas Gohr * 7*64744a10SAndreas Gohr * Closes an open Fieldset 8*64744a10SAndreas Gohr * 9*64744a10SAndreas Gohr * @package dokuwiki\Form 10*64744a10SAndreas Gohr */ 11*64744a10SAndreas Gohrclass FieldsetCloseElement extends TagCloseElement { 12*64744a10SAndreas Gohr 13*64744a10SAndreas Gohr /** 14*64744a10SAndreas Gohr * @param array $attributes 15*64744a10SAndreas Gohr */ 16*64744a10SAndreas Gohr public function __construct($attributes = array()) { 17*64744a10SAndreas Gohr parent::__construct('tagclose', $attributes); 18*64744a10SAndreas Gohr } 19*64744a10SAndreas Gohr 20*64744a10SAndreas Gohr /** 21*64744a10SAndreas Gohr * do not call this 22*64744a10SAndreas Gohr * 23*64744a10SAndreas Gohr * @param $class 24*64744a10SAndreas Gohr * @return void 25*64744a10SAndreas Gohr * @throws \BadMethodCallException 26*64744a10SAndreas Gohr */ 27*64744a10SAndreas Gohr public function addClass($class) { 28*64744a10SAndreas Gohr throw new \BadMethodCallException('You can\t add classes to closing tag'); 29*64744a10SAndreas Gohr } 30*64744a10SAndreas Gohr 31*64744a10SAndreas Gohr /** 32*64744a10SAndreas Gohr * do not call this 33*64744a10SAndreas Gohr * 34*64744a10SAndreas Gohr * @param $id 35*64744a10SAndreas Gohr * @return void 36*64744a10SAndreas Gohr * @throws \BadMethodCallException 37*64744a10SAndreas Gohr */ 38*64744a10SAndreas Gohr public function id($id = null) { 39*64744a10SAndreas Gohr throw new \BadMethodCallException('You can\t add ID to closing tag'); 40*64744a10SAndreas Gohr } 41*64744a10SAndreas Gohr 42*64744a10SAndreas Gohr /** 43*64744a10SAndreas Gohr * do not call this 44*64744a10SAndreas Gohr * 45*64744a10SAndreas Gohr * @param $name 46*64744a10SAndreas Gohr * @param $value 47*64744a10SAndreas Gohr * @return void 48*64744a10SAndreas Gohr * @throws \BadMethodCallException 49*64744a10SAndreas Gohr */ 50*64744a10SAndreas Gohr public function attr($name, $value = null) { 51*64744a10SAndreas Gohr throw new \BadMethodCallException('You can\t add attributes to closing tag'); 52*64744a10SAndreas Gohr } 53*64744a10SAndreas Gohr 54*64744a10SAndreas Gohr /** 55*64744a10SAndreas Gohr * do not call this 56*64744a10SAndreas Gohr * 57*64744a10SAndreas Gohr * @param $attributes 58*64744a10SAndreas Gohr * @return void 59*64744a10SAndreas Gohr * @throws \BadMethodCallException 60*64744a10SAndreas Gohr */ 61*64744a10SAndreas Gohr public function attrs($attributes = null) { 62*64744a10SAndreas Gohr throw new \BadMethodCallException('You can\t add attributes to closing tag'); 63*64744a10SAndreas Gohr } 64*64744a10SAndreas Gohr} 65