$actionLabel = get_lang('Reuse'); $actionIcon1 = "clone"; $actionIcon2 = ""; $questionTagA = 0; } } // Display table $header = array(); $header[] = array(get_lang('QuestionUpperCaseFirstLetter'), false, array("style" => "text-align:center"), ''); $header[] = array(get_lang('Type'), false, array("style" => "text-align:center"), array("style" => "text-align:center"), ''); $header[] = array(get_lang('QuestionCategory'), false, array("style" => "text-align:center"), array("style" => "text-align:center"), ''); $header[] = array(get_lang('Difficulty'), false, array("style" => "text-align:center"), array("style" => "text-align:center"), ''); $header[] = array($actionLabel, false, array("style" => "text-align:center"), array("style" => "text-align:center"), ''); $data = array(); if (is_array($main_question_list)) { $all_category_list = Testcategory::getCategoryListName($selected_course); foreach ($main_question_list as $question_item) { $row = array(); $question_id_item = $question_item['iid']; //This function checks if the question can be read $question_type = get_question_type_for_question($selected_course, $question_id_item); if (empty($question_type)) { continue; } $row[] = get_a_tag_for_question($questionTagA, $fromExercise, $question_id_item, $question_item['type'], $question_item['question']); $row[] = $question_type; $row[] = get_question_category_for_question($selected_course, $question_id_item); $row[] = $question_item['level']; $row[] = get_action_icon_for_question($actionIcon1, $fromExercise, $question_id_item, $question_item['type'], $question_item['question'], $selected_course, $courseCategoryId, $exerciseLevel, $answerType, $session_id, $exerciseId) . " " . get_action_icon_for_question($actionIcon2, $fromExercise, $question_id_item, $question_item['type'], $question_item['question'], $selected_course, $courseCategoryId, $exerciseLevel, $answerType, $session_id, $exerciseId); $data[] = $row; }