Source for file form_field_radio_group_semidynamic_view.class.php
Documentation is available at form_field_radio_group_semidynamic_view.class.php
// *** Tangra (Application Framework and Tools for PHP)
* Contains class Form_Field_Radio_Group_Semidynamic_View
require_once(TANGRA_MAIN_DIR. 'form/fields/form_field_view.class.php');
* Semidynamic view class for Form_Field_Radio_Group
* $rl_arr must be an array in form:
* $rl_arr[radio_value] = radio_label;
* Example: $rl_arr[1] = 'one';
* @param unknown_type $rl_arr
* @throws Tangra_Exception
throw new Tangra_Exception('$rl_arr is not an array');
$radios = $this->field->get_radios();
// print_r_pre($this->radios_labels_map);
foreach($radios as $radio) {
$tmp_radio['html_value'] = $radio['html_value'];
$tmp_radio['checked'] = $radio['checked'];
$exports->add_pair($this->get_tpl_name(). '_radios',$radios_exp);
throw new Tangra_Exception('radios_labels_map does not have key = '. $value);
|