Group Features in Log Viewing

Group Features in Log Viewing

โดย Mike Churchward -
Number of replies: 2
รูปภาพของCore developers รูปภาพของPlugin developers รูปภาพของTesters
I have attached a zip file containing code that modifies the log review feature to use the course's group settings.

The new functions are:
  1. If groups are set to visible, you can select the group you wish to look at, or all groups.
  2. If groups are set to separate, and you are an administrator or editing teacher, you can select a group to look at.
  3. If groups are set to separate, and you are a non-editing teacher, you can only see results from your group and cannot select a group.
  4. If there are no groups, you can't select a group.
To use it, replace your existing '/course/log.php' with the file enclosed. Copy the two functions in the 'lib(replacements).php' file into your '/course/lib.php' file, replacing the corresponding functions there. Make sure you make backups of your original files before doing this.

If this makes sense, I'd love to see it put into the main branch.

mike
การประเมินโดยเฉลี่ย: -
In reply to Mike Churchward

Re: Group Features in Log Viewing

โดย Martin Dougiamas -
รูปภาพของCore developers รูปภาพของDocumentation writers รูปภาพของMoodle HQ รูปภาพของParticularly helpful Moodlers รูปภาพของPlugin developers รูปภาพของTesters
Sounds great!  Go for it (you have editing rights there).   Just be careful to not overwrite some of the recent changes in that area that add viewing of site errors (based on Penny Leach's work).
การประเมินโดยเฉลี่ย: -