|
|
@ -9510,6 +9510,10 @@ class Exercise |
|
|
|
|
|
|
|
|
|
|
|
$currentRow['title'] = $url.' '.$session_img.$lp_blocked; |
|
|
|
$currentRow['title'] = $url.' '.$session_img.$lp_blocked; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ($returnData) { |
|
|
|
|
|
|
|
$currentRow['title'] = $exercise->getUnformattedTitle(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Count number exercise - teacher |
|
|
|
// Count number exercise - teacher |
|
|
|
$sql = "SELECT count(*) count FROM $TBL_EXERCISE_QUESTION |
|
|
|
$sql = "SELECT count(*) count FROM $TBL_EXERCISE_QUESTION |
|
|
|
WHERE c_id = $courseId AND exercice_id = $my_exercise_id"; |
|
|
|
WHERE c_id = $courseId AND exercice_id = $my_exercise_id"; |
|
|
@ -9981,15 +9985,25 @@ class Exercise |
|
|
|
$actions = $myActions($row); |
|
|
|
$actions = $myActions($row); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$rowTitle = $currentRow['title']; |
|
|
|
$currentRow = [ |
|
|
|
$currentRow = [ |
|
|
|
$row['iid'], |
|
|
|
$row['iid'], |
|
|
|
$currentRow['title'], |
|
|
|
$rowTitle, |
|
|
|
$currentRow['count_questions'], |
|
|
|
$currentRow['count_questions'], |
|
|
|
$actions, |
|
|
|
$actions, |
|
|
|
]; |
|
|
|
]; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ($returnData) { |
|
|
|
|
|
|
|
$currentRow['id'] = $exercise->iid; |
|
|
|
|
|
|
|
$currentRow['url'] = $webPath.'exercise/overview.php?' |
|
|
|
|
|
|
|
.api_get_cidreq_params($courseInfo['code'], $sessionId).'&' |
|
|
|
|
|
|
|
."$mylpid$mylpitemid&exerciseId={$row['iid']}"; |
|
|
|
|
|
|
|
$currentRow['name'] = $rowTitle; |
|
|
|
|
|
|
|
} |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
|
|
|
|
$rowTitle = $currentRow['title']; |
|
|
|
$currentRow = [ |
|
|
|
$currentRow = [ |
|
|
|
$currentRow['title'], |
|
|
|
$rowTitle, |
|
|
|
$currentRow['attempt'], |
|
|
|
$currentRow['attempt'], |
|
|
|
]; |
|
|
|
]; |
|
|
|
|
|
|
|
|
|
|
@ -10003,7 +10017,7 @@ class Exercise |
|
|
|
$currentRow['url'] = $webPath.'exercise/overview.php?' |
|
|
|
$currentRow['url'] = $webPath.'exercise/overview.php?' |
|
|
|
.api_get_cidreq_params($courseInfo['code'], $sessionId).'&' |
|
|
|
.api_get_cidreq_params($courseInfo['code'], $sessionId).'&' |
|
|
|
."$mylpid$mylpitemid&exerciseId={$row['iid']}"; |
|
|
|
."$mylpid$mylpitemid&exerciseId={$row['iid']}"; |
|
|
|
$currentRow['name'] = $currentRow[0]; |
|
|
|
$currentRow['name'] = $rowTitle; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|