case ":": //multi-flexi array numbers create_subQuestions($question, $qid, $sgq); //get multiflexible_checkbox - if set then each box is a checkbox (single fixed response) $mcb = get_length($qid, 'multiflexible_checkbox', -1); if ($mcb != -1) { create_multi($question, $qid, $sgq, 1); } else { //get multiflexible_max - if set then make boxes of max this width $mcm = strlen(get_length($qid, 'multiflexible_max', 1)); create_multi($question, $qid, $sgq, 1, array('f' => 'integer', 'len' => $mcm, 'lab' => '')); } break; case ";": //multi-flexi array text create_subQuestions($question, $qid, $sgq); //foreach question where scale_id = 1 this is a textbox create_multi($question, $qid, $sgq, 1, array('f' => 'text', 'len' => 10, 'lab' => '')); break; case "^": //SLIDER CONTROL - not supported $response->append_child(fixed_array(array("NOT SUPPORTED:{$type}" => 1))); $question->append_child($response); break; } //End Switch $section->append_child($question); } $questionnaire->append_child($section); } $dom->append_child($questionnaire);
case ":": //multi-flexi array numbers create_subQuestions(&$question, $qid, $RowQ['title']); //get multiflexible_checkbox - if set then each box is a checkbox (single fixed response) $mcb = get_length($qid, 'multiflexible_checkbox', -1); if ($mcb != -1) { create_multi(&$question, $qid, $RowQ['title'], 1); } else { //get multiflexible_max - if set then make boxes of max this width $mcm = strlen(get_length($qid, 'multiflexible_max', 1)); create_multi(&$question, $qid, $RowQ['title'], 1, array('f' => 'integer', 'len' => $mcm, 'lab' => '')); } break; case ";": //multi-flexi array text create_subQuestions(&$question, $qid, $RowQ['title']); //foreach question where scale_id = 1 this is a textbox create_multi(&$question, $qid, $RowQ['title'], 1, array('f' => 'text', 'len' => 10, 'lab' => '')); break; case "^": //SLIDER CONTROL - not supported $response->append_child(fixed_array(array("NOT SUPPORTED:{$type}" => 1))); $question->append_child($response); break; } //End Switch $section->append_child($question); } $questionnaire->append_child($section); } $dom->append_child($questionnaire);