Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/mod/quiz/db/events.php
Go to the documentation of this file.
00001 <?php
00002 // This file is part of Moodle - http://moodle.org/
00003 //
00004 // Moodle is free software: you can redistribute it and/or modify
00005 // it under the terms of the GNU General Public License as published by
00006 // the Free Software Foundation, either version 3 of the License, or
00007 // (at your option) any later version.
00008 //
00009 // Moodle is distributed in the hope that it will be useful,
00010 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00011 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012 // GNU General Public License for more details.
00013 //
00014 // You should have received a copy of the GNU General Public License
00015 // along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
00016 
00027 defined('MOODLE_INTERNAL') || die();
00028 
00029 
00030 $handlers = array(
00031     // Handle our own quiz_attempt_submitted event, as a way to send confirmation
00032     // messages asynchronously.
00033     'quiz_attempt_submitted' => array (
00034         'handlerfile'     => '/mod/quiz/locallib.php',
00035         'handlerfunction' => 'quiz_attempt_submitted_handler',
00036         'schedule'        => 'cron',
00037     ),
00038 );
00039 
00040 /* List of events generated by the quiz module, with the fields on the event object.
00041 
00042 quiz_attempt_started
00043     ->component   = 'mod_quiz';
00044     ->attemptid   = // The id of the new quiz attempt.
00045     ->timestart   = // The timestamp of when the attempt was started.
00046     ->userid      = // The user id that the attempt belongs to.
00047     ->quizid      = // The quiz id of the quiz the attempt belongs to.
00048     ->cmid        = // The course_module id of the quiz the attempt belongs to.
00049     ->courseid    = // The course id of the course the quiz belongs to.
00050 
00051 quiz_attempt_submitted
00052     ->component   = 'mod_quiz';
00053     ->attemptid   = // The id of the quiz attempt that was submitted.
00054     ->timefinish  = // The timestamp of when the attempt was submitted.
00055     ->userid      = // The user id that the attempt belongs to.
00056     ->submitterid = // The user id of the user who sumitted the attempt.
00057     ->quizid      = // The quiz id of the quiz the attempt belongs to.
00058     ->cmid        = // The course_module id of the quiz the attempt belongs to.
00059     ->courseid    = // The course id of the course the quiz belongs to.
00060 
00061 */
 All Data Structures Namespaces Files Functions Variables Enumerations