Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-30180

META: Grade-able activity modules should have grade.php and support parameter userid

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • 2.2
    • Gradebook
    • MOODLE_22_STABLE

      In 2.2 the Gradebook has links under near grade in Grader report and User report.
      Activity modules are strongly encouraged to add file grade.php that has mandatory argument id (module id) and optional arguments userid and itemnumber. File should redirect to the grading page for the whole module or to grading/reviewing of a particular user in this module.

      Some modules add several columns in Grader report (=rows in User report). The different itemnumber is used for each column (row).

      If user does not have grading permission for this module, the parameter userid is ignored and grading of the current user is displayed (this happens when student views User report)

      See implementation for assignments as an example (although itemnumber is not applicable for assignments)

      See attached screenshots (in the bottom of the screenshot you can see a formed link). Note that Grader report may add &gradeid=XXX to the link, where XXX may be empty if no grade exists yet. User report does not have gradeid, but it can be calculated by module if necessary knowing the other arguments

        1. graderreport.png
          42 kB
          Marina Glancy
        2. graderreport2.png
          37 kB
          Marina Glancy
        3. userreport.png
          47 kB
          Marina Glancy

            Unassigned Unassigned
            marina Marina Glancy
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.