Hi devs,
We run courses that are divided into modules and sometimes one or two years pass between someone completing one module and starting the next. By this time, the completed course is often no longer accessible to students, so I often get asked to retrieve all of a particular student's uploaded work.
In Moodle 1.9, this is easy. CourseIDs and UserIDs are easily visible from URLs and then all I have to do is issue a find command like this:
# CourseID=12, UserID=24 # find dataroot -type f -regex '/12/.*/24/' -print
and I get a nice listing of all the uploaded work by a particular student on a particular course. I can then zip them all up and send them to the student and everyone is happy.
I fear, things are not going to be so simple in Moodle 2.X due to the opaque nature of the Moodle 2.X filesystem.
Can anyone think of a way of doing this in Moodle 2.0? Is it even possible?
Presumably the first step will have to be a database query since there must be a way of mapping the human name (stored in the database) to the silicon name (used on disk).
Thanks in advance.