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

              Assignee:
              marina Marina Glancy
              Reporter:
              marina Marina Glancy
              Peer reviewer:
              Petr Skoda
              Integrator:
              Damyon Wiese
              Tester:
              Damyon Wiese
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

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