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

Quiz: improve the structure class, by adding a slot class to represent all the data about one slot

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Minor
    • None
    • 4.1
    • Quiz

    Description

      The mod_quiz\structure class curretly stores a lot of data in in arrays of stdClass objects. Even with documentation, that is not so easy to understand.

      Therefore, I think it is worth introducing a new class mod_quiz\local\structure\slot to store all the data for one slot in documented fields, and update the code to use it.

      At the same time, consider whether mod_quiz\local\structure\slot_random is a useful class. (It seems to be only used in quiz_add_random_questions in locallib.php.)

      Attachments

        Activity

          People

            timhunt Tim Hunt
            timhunt Tim Hunt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 minute
                1m

                Clockify

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