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

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

      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.)

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

              Created:
              Updated:

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

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