162 |
* |
* |
163 |
* @param label string - text label for the element |
* @param label string - text label for the element |
164 |
* @param bool required - is this a required element |
* @param bool required - is this a required element |
165 |
|
* @param string - the value to use for the 'yes' radio |
166 |
|
* NOTE: default is 'yes' |
167 |
|
* @param string - the value to use for the 'no' radio |
168 |
|
* NOTE: default is 'no' |
169 |
*/ |
*/ |
170 |
function FEYesNoRadioGroup($label, $required = TRUE) { |
function FEYesNoRadioGroup($label, $required = TRUE, |
171 |
|
$yes_value="yes", $no_value="no") { |
172 |
$this->FormElement($label, $required); |
$this->FormElement($label, $required); |
173 |
$this->_data_list[] = array("Yes" => "yes"); |
$this->_data_list[] = array("Yes" => $yes_value); |
174 |
$this->_data_list[] = array("No" => "no"); |
$this->_data_list[] = array("No" => $no_value); |
175 |
} |
} |
176 |
} |
} |
177 |
?> |
?> |