MDL-15553 events_trigger() perf improvement; merged from MOODLE_19_STABLE
[moodle.git] / lib / db / events.php
CommitLineData
ca4bcf58 1<?php // $Id$
2
3///////////////////////////////////////////////////////////////////////////
4// Defines core event handlers //
5///////////////////////////////////////////////////////////////////////////
6// //
7// NOTICE OF COPYRIGHT //
8// //
9// Moodle - Modular Object-Oriented Dynamic Learning Environment //
10// http://moodle.org //
11// //
12// Copyright (C) 1999 onwards Martin Dougiamas http://moodle.com //
13// //
14// This program is free software; you can redistribute it and/or modify //
15// it under the terms of the GNU General Public License as published by //
16// the Free Software Foundation; either version 2 of the License, or //
17// (at your option) any later version. //
18// //
19// This program is distributed in the hope that it will be useful, //
20// but WITHOUT ANY WARRANTY; without even the implied warranty of //
21// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
22// GNU General Public License for more details: //
23// //
24// http://www.gnu.org/copyleft/gpl.html //
25// //
26///////////////////////////////////////////////////////////////////////////
27
28
2942a5cd 29
30/* List of handlers */
31
b67ec72f 32$handlers = array (); // no handlers for now in core
ca4bcf58 33
2942a5cd 34
35
36/* List of events thrown from Moodle core
37
38==== user related events ====
39
40user_created - object user table record
41user_updated - object user table record
42user_deleted - object user table record
43
44==== course related events ====
45
46course_category_updated - object course_categories table record
47course_category_created - object course_categories table record
48course_category_deleted - object course_categories table record
49
50course_created - object course table record
51course_updated - object course table record
52course_deleted - object course table record
53
54==== group related events ====
55
56groups_group_created - object groups_group table record
57groups_group_updated - object groups_group table record
58groups_group_deleted - object groups_group table record
59
60groups_member_added - object userid, groupid properties
61groups_member_removed - object userid, groupid properties
62
63groups_grouping_created - object groups_grouping table record
64groups_grouping_updated - object groups_grouping table record
65groups_grouping_deleted - object groups_grouping table record
66
67groups_members_removed - int course id - removed all members from all groups in course
68groups_groupings_groups_removed - int course id - removed all groups from all groupings in course
69groups_groups_deleted - int course id - deleted all course groups
70groups_groupings_deleted - int course id - deleted all course groupings
71
72
73*/
74
ca4bcf58 75?>