MDL-58087 core_calendar: Don't pass non action events through our plumbing
authorCameron Ball <cameron@moodle.com>
Wed, 22 Mar 2017 11:23:05 +0000 (19:23 +0800)
committerDan Poltawski <dan@moodle.com>
Tue, 4 Apr 2017 10:01:40 +0000 (11:01 +0100)
commit02854eac9ef95f7a4dffe780c0b14e95df610bd5
tree46a05d318aceaa83212aa964bfea115d4791f9fe
parentf8a3e28b161c73ebf69c7cf9f75b918d4ea9c67f
MDL-58087 core_calendar: Don't pass non action events through our plumbing

The event factory should simply instantiate an event for non action
events and pass only action events through the plumbing.

This way modules implementing the callbacks can be sure that what
is passed in to the callback is actually supposed to be an action event.

Part of MDL-55611 epic.
calendar/classes/local/event/factories/event_abstract_factory.php