return $group;
}
- /**
- * @param string $name
- * @param $title
- * @param $values
- * @param array $attributes
- * @param null $separator
- * @param bool $required
- *
- * @return HTML_QuickForm_group
- */
- public function &addRadioGroup($name, $title, $values, $attributes = array(), $separator = NULL, $required = FALSE) {
- return $this->addRadio($name, $title, $values, $attributes, $separator, $required);
- }
-
/**
* @param int $id
* @param $title
}
}
-
- /**
- * @param int $id
- * @param $title
- * @param $values
- * @param null $other
- * @param null $attributes
- * @param null $required
- * @param null $javascriptMethod
- * @param string $separator
- * @param bool $flipValues
- */
- public function addCheckBoxGroup(
- $id, $title, $values, $other = NULL, $attributes = NULL, $required = NULL,
- $javascriptMethod = NULL, $separator = '<br />', $flipValues = FALSE
- ) {
- $this->addCheckBox(
- $id, $title, $values, $other,
- $attributes, $required, $javascriptMethod, $separator, $flipValues
- );
- }
-
public function resetValues() {
$data = $this->controller->container();
$data['values'][$this->_name] = array();
break;
case 'CheckBoxGroup':
- $this->addCheckBoxGroup($name, $label, array_flip($options), $required, $props);
+ $this->addCheckBox($name, $label, array_flip($options), $required, $props);
break;
case 'RadioGroup':
- $this->addRadioGroup($name, $label, $options, $props, NULL, $required);
+ $this->addRadio($name, $label, $options, $props, NULL, $required);
break;
//case 'AdvMulti-Select':