本文整理汇总了PHP中ExerciseLib::get_question_ribbon方法的典型用法代码示例。如果您正苦于以下问题:PHP ExerciseLib::get_question_ribbon方法的具体用法?PHP ExerciseLib::get_question_ribbon怎么用?PHP ExerciseLib::get_question_ribbon使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ExerciseLib
的用法示例。
在下文中一共展示了ExerciseLib::get_question_ribbon方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
$counter++;
$question_content .= $contents;
$question_content .= '</div>';
$exercise_content .= $question_content;
}
// end of large foreach on questions
$total_score_text = null;
//Total score
if ($origin != 'learnpath' || $origin == 'learnpath' && isset($_GET['fb_type'])) {
if ($show_results || $show_only_total_score) {
$total_score_text .= '<div class="question_row">';
$my_total_score_temp = $totalScore;
if ($objExercise->selectPropagateNeg() == 0 && $my_total_score_temp < 0) {
$my_total_score_temp = 0;
}
$total_score_text .= ExerciseLib::get_question_ribbon($objExercise, $my_total_score_temp, $totalWeighting, true);
$total_score_text .= '</div>';
}
}
if (!empty($category_list) && ($show_results || $show_only_total_score)) {
// Adding total
$category_list['total'] = array('score' => $my_total_score_temp, 'total' => $totalWeighting);
echo TestCategory::get_stats_table_by_attempt($objExercise->id, $category_list);
}
echo $total_score_text;
echo $exercise_content;
echo $total_score_text;
if ($isFeedbackAllowed) {
if (is_array($arrid) && is_array($arrmarks)) {
$strids = implode(",", $arrid);
$marksid = implode(",", $arrmarks);