Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-9137 META: Rewrite the entire Gradebook system in Moodle 1.9
  3. MDL-9510

Cron job for support of legacy grade functions in modules

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8
    • Fix Version/s: 1.9
    • Component/s: Gradebook
    • Labels:
      None
    • Affected Branches:
      MOODLE_18_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      For backward compatibility with old third-party modules, we will add a new function called grades_grab_grades() to admin/cron.php to search all mod/xxx/lib.php files for functions named xxx_grades().

      These legacy functions will be called to extract all the grades for all the activities in each course. Once the data is extracted, the trigger_event() function can be called to initiate an event as usual and copy/upgrade the data in the gradebook tables.

      Think hard about some way to prevent doing this same work over and over ....

        Attachments

          Activity

            People

            Assignee:
            lazyfish Yu Zhang
            Reporter:
            dougiamas Martin Dougiamas
            Tester:
            Nobody
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              3/Mar/08