mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 09:26:35 +02:00
Moved a couple of functions back to lib.php from locallib.php
This commit is contained in:
parent
c8c6d4e0dc
commit
de7200645a
2 changed files with 20 additions and 17 deletions
|
@ -594,6 +594,24 @@ function exercise_get_participants($exerciseid) {
|
|||
return ($st_submissions);
|
||||
}
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Non-standard Exercise functions
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||
function exercise_file_area($exercise, $submission) {
|
||||
return make_upload_directory( exercise_file_area_name($exercise, $submission) );
|
||||
}
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||
function exercise_file_area_name($exercise, $submission) {
|
||||
// Creates a directory file name, suitable for make_upload_directory()
|
||||
global $CFG;
|
||||
|
||||
return "$exercise->course/$CFG->moddata/exercise/$submission->id";
|
||||
}
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||
function exercise_get_assess_logs($course, $timestart) {
|
||||
// get the "assess" entries for this user and add the first and last names...
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue