Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/lib/db/events.php
Go to the documentation of this file.
00001 <?php
00002 
00003 // This file is part of Moodle - http://moodle.org/
00004 //
00005 // Moodle is free software: you can redistribute it and/or modify
00006 // it under the terms of the GNU General Public License as published by
00007 // the Free Software Foundation, either version 3 of the License, or
00008 // (at your option) any later version.
00009 //
00010 // Moodle is distributed in the hope that it will be useful,
00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013 // GNU General Public License for more details.
00014 //
00015 // You should have received a copy of the GNU General Public License
00016 // along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
00017 
00028 defined('MOODLE_INTERNAL') || die();
00029 
00030 /* List of handlers */
00031 
00032 $handlers = array(
00033 
00034 /*
00035  * portfolio queued event - for non interactive file transfers
00036  * NOTE: this is a HACK, please do not add any more things like this here
00037  *       (it is just abusing cron to do very time consuming things which is wrong any way)
00038  *
00039  * TODO: this has to be moved into separate queueing framework....
00040  */
00041     'portfolio_send' => array (
00042         'handlerfile'      => '/lib/portfolio.php',
00043         'handlerfunction'  => 'portfolio_handle_event',    // argument to call_user_func(), could be an array
00044         'schedule'         => 'cron',
00045         'internal'         => 0,
00046     ),
00047 
00048 
00049 /* no more here please, core should not consume any events!!!!!!! */
00050 );
00051 
00052 
00053 
00054 
00055 /* List of events thrown from Moodle core
00056 
00057 ==== user related events ====
00058 
00059 user_created - object user table record
00060 user_updated - object user table record
00061 user_deleted - object user table record
00062 user_logout - full $USER object
00063 
00064 ==== course related events ====
00065 
00066 course_category_updated - object course_categories table record
00067 course_category_created - object course_categories table record
00068 course_category_deleted - object course_categories table record
00069 
00070 course_created - object course table record
00071 course_updated - object course table record
00072 course_content_removed - object course table record + context property
00073 course_deleted - object course table record + context property
00074 
00075 user_enrolled - object record from user_enrolments table + courseid,enrol
00076 user_enrol_modified - object record from user_enrolments table + courseid,enrol
00077 user_unenrolled - object record from user_enrolments table + courseid,enrol,lastenrol
00078 
00079 ==== cohort related events ===
00080 
00081 
00082 cohort_added - object cohort table record
00083 cohort_updated - object cohort table record
00084 cohort_deleted - object cohort table record
00085 
00086 cohort_member_added - object cohortid, userid properties
00087 cohort_member_removed - object cohortid, userid properties
00088 
00089 ==== group related events ====
00090 
00091 groups_group_created - object groups_group table record
00092 groups_group_updated - object groups_group table record
00093 groups_group_deleted - object groups_group table record
00094 
00095 groups_member_added   - object userid, groupid properties
00096 groups_member_removed - object userid, groupid properties
00097 
00098 groups_grouping_created - object groups_grouping table record
00099 groups_grouping_updated - object groups_grouping table record
00100 groups_grouping_deleted - object groups_grouping table record
00101 
00102 groups_members_removed          - object courseid+userid - removed all users (or one user) from all groups in course
00103 groups_groupings_groups_removed - int course id - removed all groups from all groupings in course
00104 groups_groups_deleted           - int course id - deleted all course groups
00105 groups_groupings_deleted        - int course id - deleted all course groupings
00106 
00107 ==== role related events ====
00108 
00109 role_assigned         - object role_assignments table record
00110 role_unassigned       - object role_assignments table record
00111 
00112 ==== activity module events ====
00113 
00114 mod_deleted - int courseid, int cmid, text modulename - happens when a module is deleted
00115 mod_created - int courseid, int cmid, text modulename - happens when a module is created
00116 mod_updated - int courseid, int cmid, text modulename - happens when a module is updated
00117 
00118 */
 All Data Structures Namespaces Files Functions Variables Enumerations