moodle/group
Frederic Massart 861b0510e5 MDL-39959: Replace Legacy events - Groups
This combines the following changes:

* Event for group member added
* Event for group member removed
* Event for group created
* Event for grouping created
* Event for group updated
* Event for grouping updated
* Event for group deleted
* Event for grouping deleted
* Adding tests for deleting functions
* Bulk remove of members uses low-level API

    The reason for this is that a bulk event has no value from a logging
    perspective as it is not granular. So now, the API is a bit slower,
    but the information the events contain makes sense, beside this is
    not (and should not be) used very often.

    The reason why the events_trigger_legacy() is kept is because we
    cannot create a new event for this, as we don't encourage developers
    to created bulk events, for the reasons mentioned above.

    I removed the call that gets the user record from the function
    groups_remove_member() as it was not required and only appeared
    to check if the user existed. It appears to be safe not to do
    this check as nothing would fail down the line.

* Bulk unassign of groupings uses low-level API

    As the previous commit, we keep the legacy event for now as it would
    be wrong to create a new event to replace it.

    Also, the code has been changed to call the low-level API to unassign
    groups from groupins, even though at the moment there are no
    events for that function.

* Bulk deletion of groups uses low-level API

    Again, we keep the legacy event because replacing it would force
    us to create a new event that does not make sense. See MDL-41312.

* Bulk deleting of groupings uses low-level API
* Asserting legacy event name in unit tests
* Minor SQL query and code improvements
2013-08-26 15:03:17 +08:00
..
tests MDL-39959: Replace Legacy events - Groups 2013-08-26 15:03:17 +08:00
assign.php MDL-34398 groups: implemented caching of group information. 2013-01-17 09:24:58 +13:00
autogroup.php MDL-34398 groups: implemented caching of group information. 2013-01-17 09:24:58 +13:00
autogroup_form.php MDL-34471 libraries: Replace all uses of get_context_instance() with respective context_XXXX::instance() method 2012-08-02 15:37:38 +08:00
clientlib.js MDL-34741 use 2in3 in groups UI 2012-08-11 20:40:07 +02:00
delete.php MDL-34471 libraries: Replace all uses of get_context_instance() with respective context_XXXX::instance() method 2012-08-02 15:37:38 +08:00
externallib.php MDL-34434 Change the texts saying that we'll be removing web service deprecated functions from 2.5 2013-04-17 12:13:04 +08:00
group.php MDL-34471 libraries: Replace all uses of get_context_instance() with respective context_XXXX::instance() method 2012-08-02 15:37:38 +08:00
group_form.php MDL-40438 migrate all collatorlib:: and textlib:: uses 2013-08-06 21:04:35 +02:00
grouping.php MDL-34471 libraries: Replace all uses of get_context_instance() with respective context_XXXX::instance() method 2012-08-02 15:37:38 +08:00
grouping_form.php MDL-40438 migrate all collatorlib:: and textlib:: uses 2013-08-06 21:04:35 +02:00
groupings.php MDL-38301 usability: Fixed wrong icon size 2013-02-15 10:04:57 +08:00
import.php Revert "MDL-39876 Change get_record('course') calls to get_course" 2013-08-21 13:42:30 +08:00
import_form.php MDL-39241 groups import: missing type 2013-04-19 14:51:27 +01:00
index.php Revert "MDL-40931 useragent: separated user agent functionality into a lib" 2013-08-22 13:31:25 +08:00
lib.php MDL-39959: Replace Legacy events - Groups 2013-08-26 15:03:17 +08:00
members.php Revert "MDL-39876 Change get_record('course') calls to get_course" 2013-08-21 13:42:30 +08:00
module.js MDL-32005 Add idnumber field to groups and groupings 2012-05-15 09:38:51 +01:00
overview.php MDL-31776 - lib: Alternate name fields 2013-07-09 11:45:50 +08:00
tabs.php MDL-38309 Substitute usage of print_tabs() with renderable tabtree 2013-04-15 12:13:13 +10:00