2 require_once("HTML/QuickForm/group.php");
5 * HTML class for a form element group
7 * @author Adam Daniel <adaniel1@eesus.jnj.com>
8 * @author Bertrand Mansion <bmansion@mamasam.com>
13 class MoodleQuickForm_group
extends HTML_QuickForm_group
{
15 * html for help button, if empty then no help
20 function MoodleQuickForm_group($elementName=null, $elementLabel=null, $elements=null, $separator=null, $appendName = true) {
21 parent
::HTML_QuickForm_group($elementName, $elementLabel, $elements, $separator, $appendName);
23 //would cause problems with client side validation so will leave for now
24 //var $_elementTemplateType='fieldset';
26 * set html for help button
29 * @param array $help array of arguments to make a help button
30 * @param string $function function name to call to get html
32 function setHelpButton($helpbuttonargs, $function='helpbutton'){
33 debugging('component setHelpButton() is not used any more, please use $mform->setHelpButton() instead');
36 * set html for help button
39 * @param array $help array of arguments to make a help button
40 * @param string $function function name to call to get html
42 function getHelpButton(){
43 return $this->_helpbutton
;
45 function getElementTemplateType(){
46 if ($this->_flagFrozen
){
47 if ($this->getGroupType() == 'submit'){
57 function setElements($elements){
58 parent
::setElements($elements);
59 foreach ($this->_elements
as $element){
60 if (method_exists($element, 'setHiddenLabel')){
61 $element->setHiddenLabel(true);