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

Storing data for observers in events

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.6.1
    • Fix Version/s: 2.6.2
    • Component/s: Events API
    • Labels:
    • Sprint:
      BACKEND Sprint 11

      Description

      This issue is half-bugfix and half-policy.
      Sometimes events need extra information that they give to observers. At the moment we have get_legacy_eventdata() method but it is protected and can not be used by new-style observers.

      Bug: some existing events lack public method for the custom data that is given to old-style observers.

      Policy: we need to standartise interface for additional data.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  10/Mar/14