-
Notifications
You must be signed in to change notification settings - Fork 493
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Exercise: Add export attempts results to PDF - refs #3320 #6024
Conversation
case 'export_all_results': | ||
$sessionId = api_get_session_id(); | ||
$courseId = api_get_course_int_id(); | ||
ExerciseLib::exportExerciseAllResultsZip($sessionId, $courseId, $exercise_id); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Variable "exercise_id" is not in valid camel caps format
api_get_path(WEB_CODE_PATH).'exercise/recalculate_all.php?'.api_get_cidreq()."&exercise=$exercise_id" | ||
); | ||
$actions .= Display::url( | ||
Display::getMdiIcon(ActionIcon::EXPORT_PDF, 'ch-tool-icon', null, ICON_SIZE_MEDIUM, get_lang('Export all attempts')), | ||
api_get_self().'?'.api_get_cidreq().'&action=export_all_results&exerciseId='.$exercise_id |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Variable "exercise_id" is not in valid camel caps format
if ('all_results' === $_GET['export_type']) { | ||
$sessionId = api_get_session_id(); | ||
$courseId = api_get_course_int_id(); | ||
$exportName = 'S'.$sessionId.'-C'.$courseId.'-T'.$exercise_id; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Variable "exercise_id" is not in valid camel caps format
if (!is_dir($exportFolderPath)) { | ||
@mkdir($exportFolderPath); | ||
} | ||
$pdfFileName = $user_info['firstname'].' '.$user_info['lastname'].'-attemptId'.$id.'.pdf'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Variable "user_info" is not in valid camel caps format
if (!is_dir($exportFolderPath)) { | ||
@mkdir($exportFolderPath); | ||
} | ||
$pdfFileName = $user_info['firstname'].' '.$user_info['lastname'].'-attemptId'.$id.'.pdf'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Variable "user_info" is not in valid camel caps format
Code Climate has analyzed commit 0d1ca25 and detected 23 issues on this pull request. Here's the issue category breakdown:
View more on Code Climate. |
No description provided.