MDL-10107 Fixed the definition of message providers ... it now works through files...
[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
3b120e46 32$handlers = array (
33
120b3758 34/* Messaging required parameters (object):
3b120e46 35 * modulename -
36 * userfrom
37 * userto
38 * subject
39 * fullmessage - the full message in a given format
40 * fullmessageformat - the format if the full message (FORMAT_MOODLE, FORMAT_HTML, ..)
41 * fullmessagehtml - the full version (the message processor will choose with one to use)
42 * smallmessage - the small version of the message
43 */
44
45 'message_send' => array (
46 'handlerfile' => '/lib/messagelib.php',
47 'handlerfunction' => 'message_send_handler',
48 'schedule' => 'instant'
fc053de9 49 ),
50
51/*
52 * portfolio queued event - for non interactive file transfers
53*/
54 'portfolio_send' => array (
55 'handlerfile' => '/lib/portfolio.php',
56 'handlerfunction' => 'portfolio_handle_event', // argument to call_user_func(), could be an array
57 'schedule' => 'cron'
58 ),
3b120e46 59
fc053de9 60
61/* more go here */
3b120e46 62);
63
ca4bcf58 64
2942a5cd 65
66
67/* List of events thrown from Moodle core
68
69==== user related events ====
70
71user_created - object user table record
72user_updated - object user table record
73user_deleted - object user table record
74
75==== course related events ====
76
77course_category_updated - object course_categories table record
78course_category_created - object course_categories table record
79course_category_deleted - object course_categories table record
80
81course_created - object course table record
82course_updated - object course table record
83course_deleted - object course table record
84
85==== group related events ====
86
87groups_group_created - object groups_group table record
88groups_group_updated - object groups_group table record
89groups_group_deleted - object groups_group table record
90
91groups_member_added - object userid, groupid properties
92groups_member_removed - object userid, groupid properties
93
94groups_grouping_created - object groups_grouping table record
95groups_grouping_updated - object groups_grouping table record
96groups_grouping_deleted - object groups_grouping table record
97
ffc670d9 98groups_members_removed - object courseid+userid - removed all users (or one user) from all groups in course
2942a5cd 99groups_groupings_groups_removed - int course id - removed all groups from all groupings in course
100groups_groups_deleted - int course id - deleted all course groups
101groups_groupings_deleted - int course id - deleted all course groupings
102
96608a55 103==== role related evetns ====
104
105role_assigned - object role_assignments table record
106role_unassigned - object role_assignments table record
107
2942a5cd 108*/
109
ca4bcf58 110?>