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

Quiz: move all PHP classes into the classes folder - part 2

    XMLWordPrintable

Details

    Description

      I think that Peter Jackson had this problem when he was making The Hobbit. MDL-74923 was just too much to do in one issue, so here is part 2. Refer to that issue for most of the details. These are the classes which remain to be moved:

      • DONE quiz_access_manager -> mod_quiz\access_manager (Currently in accessmanager.php)
      • DONE mod_quiz_preflight_check_form -> mod_quiz\form\preflight_check (Currently in accessmanager_form.php)
      • DONE quiz_add_random_form -> mod_quiz\form\add_random_form (Currently in addrandomform.php)
      • DONE moodle_quiz_exception - REMOVE Use moodle_exception directly. (Currently in attemptlib.php)
      • DONE quiz -> mod_quiz\settings (Currently in attemptlib.php)
      • DONE quiz_attempt -> mod_quiz\quiz_attempt (Currently in attemptlib.php - not renaming to reduce the pain!)
      • DONE quiz_nav_section_heading -> mod_quiz\output\navigation_section_heading (Currently in attemptlib.php)
      • DONE quiz_nav_question_button -> mod_quiz\local\navigation_question_button (Currently in attemptlib.php)
      • DONE quiz_nav_panel_base -> mod_quiz\local\navigation_panel_base (Currently in attemptlib.php)
      • DONE quiz_attempt_nav_panel -> mod_quiz\local\navigation_panel_attempt (Currently in attemptlib.php)
      • DONE quiz_review_nav_panel -> mod_quiz\local\navigation_panel_review (Currently in attemptlib.php)
      • DONE mod_quiz_overdue_attempt_updater -> REMOVE Move contents in to update_overdue_attempts (Currently in cronlib.php)
      • DONE quiz_override_form -> mod_quiz\form\edit_override_form (Currently in override_form.php)
      • DONE mod_quiz_renderer -> mod_quiz\output\renderer (Currently in renderer.php)
      • DONE mod_quiz_links_to_other_attempts -> mod_quiz\output\links_to_other_attempts (Currently in renderer.php)
      • DONE mod_quiz_view_object -> mod_quiz\output\view_page (Currently in renderer.php)
      • DONE quiz_access_rule_base -> mod_quiz\local\access_rule_base (Currently in accessrule/accessrulebase.php)

      One issue with these changes was that quizaccess_seb was using the same class names. To reduce confusion, I therefore also renamed:

      • DONE quizaccess_seb\quiz_settings -> quizaccess_seb\seb_quiz_settings
      • DONE quizaccess_seb\access_manager -> quizaccess_seb\seb_access_manager

      Attachments

        Issue Links

          Activity

            People

              timhunt Tim Hunt
              timhunt Tim Hunt
              Mahmoud Kassaei Mahmoud Kassaei
              Andrew Lyons Andrew Lyons
              CiBoT CiBoT
              Votes:
              2 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 4 days, 6 hours
                  4d 6h

                  Clockify

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