Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: 2.0
    • Component/s: Enrolments
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      The developer working on this should understand the imsenterprise standards.

      enrol/database is probably the best place to start with

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            dougiamas Martin Dougiamas added a comment -

            This one parses an XML file with enrolment information: http://docs.moodle.org/en/IMS_Enterprise

            Look at enrol/database for a good example of the required structure, and the old enrol/imsenterprise for the logic.

            Note these rules for plugin file names:

            lib.php - the main class (interface)
            locallib.php - any local internal functions never to be used outside of your module
            settings.php - all the settings, to appear in the admin menus in the settings block

            Please ask here if you have any questions, so Petr can answer.

            Show
            dougiamas Martin Dougiamas added a comment - This one parses an XML file with enrolment information: http://docs.moodle.org/en/IMS_Enterprise Look at enrol/database for a good example of the required structure, and the old enrol/imsenterprise for the logic. Note these rules for plugin file names: lib.php - the main class (interface) locallib.php - any local internal functions never to be used outside of your module settings.php - all the settings, to appear in the admin menus in the settings block Please ask here if you have any questions, so Petr can answer.
            Hide
            binare Eugene Venter added a comment -

            Hi there,

            here's a patch for the upgrade of this plugin to 2.0 requirements.

            i haven't done extensive testing, only on parsing of <membership>, since it seems like the only part that was affected by the new enrolment structure.

            hope this helps!

            Show
            binare Eugene Venter added a comment - Hi there, here's a patch for the upgrade of this plugin to 2.0 requirements. i haven't done extensive testing, only on parsing of <membership>, since it seems like the only part that was affected by the new enrolment structure. hope this helps!
            Hide
            skodak Petr Skoda added a comment -

            reopening, the get_assignable_roles() has to use course context in settings, not system context

            Show
            skodak Petr Skoda added a comment - reopening, the get_assignable_roles() has to use course context in settings, not system context
            Hide
            skodak Petr Skoda added a comment -

            should be fixed now

            Show
            skodak Petr Skoda added a comment - should be fixed now

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  24/Nov/10