| @@ 742-751 (lines=10) @@ | ||
| 739 | * |
|
| 740 | * @return HTML_QuickForm_group |
|
| 741 | */ |
|
| 742 | public function addCheckBoxGroup($name, $label, $options = array(), $attributes = array()) |
|
| 743 | { |
|
| 744 | $group = array(); |
|
| 745 | foreach ($options as $value => $text) { |
|
| 746 | $attributes['value'] = $value; |
|
| 747 | $group[] = $this->createElement( |
|
| 748 | 'checkbox', |
|
| 749 | $value, |
|
| 750 | null, |
|
| 751 | $text, |
|
| 752 | $attributes |
|
| 753 | ); |
|
| 754 | } |
|
| @@ 767-775 (lines=9) @@ | ||
| 764 | * |
|
| 765 | * @return HTML_QuickForm_radio |
|
| 766 | */ |
|
| 767 | public function addRadio($name, $label, $options = array(), $attributes = array()) |
|
| 768 | { |
|
| 769 | $group = array(); |
|
| 770 | foreach ($options as $key => $value) { |
|
| 771 | $group[] = $this->createElement('radio', null, null, $value, $key, $attributes); |
|
| 772 | } |
|
| 773 | ||
| 774 | return $this->addGroup($group, $name, $label); |
|
| 775 | } |
|
| 776 | ||
| 777 | /** |
|
| 778 | * @param string $name |
|