MDL-63724 core_message: buffering support for conv messages in manager
authorJake Dallimore <jake@moodle.com>
Thu, 8 Nov 2018 14:26:36 +0000 (22:26 +0800)
committerJake Dallimore <jake@moodle.com>
Mon, 12 Nov 2018 02:09:27 +0000 (10:09 +0800)
commitb30f4d6d58c42dad2528be5b12150996fd10afda
tree819c0fc70a70dfc6952a809ebfb8162b68782c88
parent0eddf920bea18fb4af10a3cb1982d9e606c6e0b5
MDL-63724 core_message: buffering support for conv messages in manager

We need to be able to delay calling all member processors with localised
event data if a DB transaction is taking place. This code treats a
conversation message as a single item of work to be buffered, and stores
all localised eventdata, and processorlists for later reference. When
processing the buffer, we pass off all localised eventdata items to
their respective member's processors, before firing a single event.
lib/classes/message/manager.php
lib/tests/messagelib_test.php