timeline: if a section is set to hidden and the user is not capable of editing a...
[moodle-blog-course-format.git] / lib / db / events.php
blob9a5542423cbe2a8f444a78378822955f201b1b6a
1 <?php // $Id$
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 ///////////////////////////////////////////////////////////////////////////
30 /* List of handlers */
32 $handlers = array (); // no handlers for now in core
36 /* List of events thrown from Moodle core
38 ==== user related events ====
40 user_created - object user table record
41 user_updated - object user table record
42 user_deleted - object user table record
44 ==== course related events ====
46 course_category_updated - object course_categories table record
47 course_category_created - object course_categories table record
48 course_category_deleted - object course_categories table record
50 course_created - object course table record
51 course_updated - object course table record
52 course_deleted - object course table record
54 ==== group related events ====
56 groups_group_created - object groups_group table record
57 groups_group_updated - object groups_group table record
58 groups_group_deleted - object groups_group table record
60 groups_member_added - object userid, groupid properties
61 groups_member_removed - object userid, groupid properties
63 groups_grouping_created - object groups_grouping table record
64 groups_grouping_updated - object groups_grouping table record
65 groups_grouping_deleted - object groups_grouping table record
67 groups_members_removed - object courseid+userid - removed all users (or one user) from all groups in course
68 groups_groupings_groups_removed - int course id - removed all groups from all groupings in course
69 groups_groups_deleted - int course id - deleted all course groups
70 groups_groupings_deleted - int course id - deleted all course groupings
72 ==== role related evetns ====
74 role_assigned - object role_assignments table record
75 role_unassigned - object role_assignments table record