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

Reorganise quiz library code to take advantage of class auto-loading

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Critical Critical
    • None
    • 2.3, 2.5
    • Quiz
    • MOODLE_23_STABLE, MOODLE_25_STABLE
    • Hide

      You reall need to do a quick test of all the quiz functionality, to ensure that nothing is broken.

      There is a reason this is being done early in the 2.6 development cycle

      Show
      You reall need to do a quick test of all the quiz functionality, to ensure that nothing is broken. There is a reason this is being done early in the 2.6 development cycle

      There are now lots of different classes defined in the quiz, and at the moment they are all mixed up in the mod/quiz folder with the front-end scripts like view.php and attempt.php.

      It would be better to move them into mod/quiz/classes folder, with one php file per class.

      At the same time, try to make it possible to use constants like quiz_attempt::FINISHED in lib.php without having to include all of locallib.php.

            timhunt Tim Hunt
            timhunt Tim Hunt
            Dan Poltawski Dan Poltawski
            Votes:
            5 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved:

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