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

Model-view refactoring of the assgnment class

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Inactive
    • Affects Version/s: 1.9.2
    • Fix Version/s: None
    • Component/s: Assignment (2.2)
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE

      Description

      We in Volgograd State Technical University developing a new activity module - extended from of assignment with individual (or small group) tasks for students (quite common situtation in educational institution). The assignment_base class is quite good to start with, but for normal code reuse it lacks one thing - separation model from view. We want to use it good grading interface, but insome situations need to replace users with workgroups.

      We can refactor assigment_base class to separate data handling and HTML generation. It would be great if the patch will be applied to the Moodle, as it may help more than one people, and will make assignment_base class more clear and structured, than now. Are Moodle community interested in the offer?

      Goals:
      1) allow better modularity and overriding options for contrib code that wanted to use it (also make it more readable and maintanable)
      2) reduce code duplication
      3) separate 'type' plugins (which only choose what submission is) from major plugins (even a separate modules, that use and develop an assignment code)

      You may see proposals at http://docs.moodle.org/en/Development:Assignment_development. Many of tasks there are necessary to allow us create a separate activity plugin (some sort of Assignment+) with close assignment integration (so merging any future changes in assignment doesn't become an awful trouble. So we can avoid adding complex things to the assignment directly, locating them in a separate module. So please don't turn them away.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            oa_sychev Oleg Sychev
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: