mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
102 lines
4.3 KiB
PHP
102 lines
4.3 KiB
PHP
<?php
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
// Defines core event handlers //
|
|
///////////////////////////////////////////////////////////////////////////
|
|
// //
|
|
// NOTICE OF COPYRIGHT //
|
|
// //
|
|
// Moodle - Modular Object-Oriented Dynamic Learning Environment //
|
|
// http://moodle.org //
|
|
// //
|
|
// Copyright (C) 1999 onwards Martin Dougiamas http://moodle.com //
|
|
// //
|
|
// This program is free software; you can redistribute it and/or modify //
|
|
// it under the terms of the GNU General Public License as published by //
|
|
// the Free Software Foundation; either version 2 of the License, or //
|
|
// (at your option) any later version. //
|
|
// //
|
|
// This program is distributed in the hope that it will be useful, //
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of //
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
|
|
// GNU General Public License for more details: //
|
|
// //
|
|
// http://www.gnu.org/copyleft/gpl.html //
|
|
// //
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
/* List of handlers */
|
|
|
|
$handlers = array (
|
|
|
|
/*
|
|
* portfolio queued event - for non interactive file transfers
|
|
*/
|
|
'portfolio_send' => array (
|
|
'handlerfile' => '/lib/portfolio.php',
|
|
'handlerfunction' => 'portfolio_handle_event', // argument to call_user_func(), could be an array
|
|
'schedule' => 'cron'
|
|
),
|
|
|
|
|
|
/* more go here */
|
|
);
|
|
|
|
|
|
|
|
|
|
/* List of events thrown from Moodle core
|
|
|
|
==== user related events ====
|
|
|
|
user_created - object user table record
|
|
user_updated - object user table record
|
|
user_deleted - object user table record
|
|
|
|
==== course related events ====
|
|
|
|
course_category_updated - object course_categories table record
|
|
course_category_created - object course_categories table record
|
|
course_category_deleted - object course_categories table record
|
|
|
|
course_created - object course table record
|
|
course_updated - object course table record
|
|
course_deleted - object course table record
|
|
|
|
==== group related events ====
|
|
|
|
groups_group_created - object groups_group table record
|
|
groups_group_updated - object groups_group table record
|
|
groups_group_deleted - object groups_group table record
|
|
|
|
groups_member_added - object userid, groupid properties
|
|
groups_member_removed - object userid, groupid properties
|
|
|
|
groups_grouping_created - object groups_grouping table record
|
|
groups_grouping_updated - object groups_grouping table record
|
|
groups_grouping_deleted - object groups_grouping table record
|
|
|
|
groups_members_removed - object courseid+userid - removed all users (or one user) from all groups in course
|
|
groups_groupings_groups_removed - int course id - removed all groups from all groupings in course
|
|
groups_groups_deleted - int course id - deleted all course groups
|
|
groups_groupings_deleted - int course id - deleted all course groupings
|
|
|
|
==== role related evetns ====
|
|
|
|
role_assigned - object role_assignments table record
|
|
role_unassigned - object role_assignments table record
|
|
|
|
==== Module Related events ====
|
|
|
|
modulename_mod_deleted - int courseid, int cmid - happens when a module is deleted -eg quiz_mod_deleted
|
|
modulename_mod_created - int courseid, int cmid - happens when a module is created -eg quiz_mod_created
|
|
modulename_mod_updated - int courseid, int cmid - happens when a module is updated -eg quiz_mod_updated
|
|
|
|
==== Assignment Related events ====
|
|
|
|
assignment_finalize_sent - object course, object user, object cm, object assignment, fileareaname
|
|
assignment_file_sent - object course, object user, object cm, object assignment, object file
|
|
*/
|