@@ 707-716 (lines=10) @@ | ||
704 | * |
|
705 | * @return HTML_QuickForm_group |
|
706 | */ |
|
707 | public function addCheckBoxGroup($name, $label, $options = array(), $attributes = array()) |
|
708 | { |
|
709 | $group = array(); |
|
710 | foreach ($options as $value => $text) { |
|
711 | $attributes['value'] = $value; |
|
712 | $group[] = $this->createElement('checkbox', $value, null, $text, $attributes); |
|
713 | } |
|
714 | ||
715 | return $this->addGroup($group, $name, $label); |
|
716 | } |
|
717 | ||
718 | /** |
|
719 | * @param string $name |
|
@@ 726-734 (lines=9) @@ | ||
723 | * |
|
724 | * @return HTML_QuickForm_radio |
|
725 | */ |
|
726 | public function addRadio($name, $label, $options = array(), $attributes = array()) |
|
727 | { |
|
728 | $group = array(); |
|
729 | foreach ($options as $key => $value) { |
|
730 | $group[] = $this->createElement('radio', null, null, $value, $key, $attributes); |
|
731 | } |
|
732 | ||
733 | return $this->addGroup($group, $name, $label); |
|
734 | } |
|
735 | ||
736 | /** |
|
737 | * @param string $name |