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

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

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Critical
    • Resolution: Won't Fix
    • 2.3, 2.5
    • None
    • 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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              timhunt Tim Hunt
              timhunt Tim Hunt
              Dan Poltawski Dan Poltawski
              Tim Hunt, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo
              Votes:
              5 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: