From 1d1719f5dde75cb11b26ddc4566e65aa75cac543 Mon Sep 17 00:00:00 2001 From: Sam Hemelryk Date: Tue, 17 Jan 2012 13:50:58 +0800 Subject: [PATCH] MDL-30985 Fixed up event API phpdocs --- enrol/category/db/events.php | 13 +++---- enrol/cohort/db/events.php | 9 ++--- enrol/meta/db/events.php | 9 ++--- lib/db/events.php | 9 ++--- lib/eventslib.php | 61 ++++++++++++++++-------------- mod/assignment/db/events.php | 47 +++++++++++------------ mod/chat/db/events.php | 6 +-- mod/forum/db/events.php | 6 +-- mod/quiz/db/events.php | 6 +-- portfolio/googledocs/db/events.php | 23 +++++++++++ portfolio/picasa/db/events.php | 27 +++++++++++-- 11 files changed, 129 insertions(+), 87 deletions(-) diff --git a/enrol/category/db/events.php b/enrol/category/db/events.php index 37b2d64c9ce..66194df447d 100644 --- a/enrol/category/db/events.php +++ b/enrol/category/db/events.php @@ -1,5 +1,4 @@ . /** - * category enrolment plugin event handler definition. + * Category enrolment plugin event handler definition. * - * @package enrol - * @subpackage category - * @copyright 2010 Petr Skoda {@link http://skodak.org} - * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + * @package enrol_category + * @category event + * @copyright 2010 Petr Skoda {@link http://skodak.org} + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ defined('MOODLE_INTERNAL') || die(); @@ -42,4 +41,4 @@ $handlers = array ( 'internal' => 1, ), -); +); \ No newline at end of file diff --git a/enrol/cohort/db/events.php b/enrol/cohort/db/events.php index 4a596aa15c7..4f26a20be4e 100644 --- a/enrol/cohort/db/events.php +++ b/enrol/cohort/db/events.php @@ -1,5 +1,4 @@ count_records_sql($sql, array($eventname)); -} +} \ No newline at end of file diff --git a/mod/assignment/db/events.php b/mod/assignment/db/events.php index 7234b30e430..265538273df 100644 --- a/mod/assignment/db/events.php +++ b/mod/assignment/db/events.php @@ -1,30 +1,27 @@ . -/////////////////////////////////////////////////////////////////////////// -// 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 3 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 // -// // -/////////////////////////////////////////////////////////////////////////// - +/** + * Definition of assignment event handlers + * + * @package mod_assignment + * @category event + * @copyright 1999 onwards Martin Dougiamas http://dougiamas.com + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ $handlers = array(); diff --git a/mod/chat/db/events.php b/mod/chat/db/events.php index 9203d970273..a33062fff22 100644 --- a/mod/chat/db/events.php +++ b/mod/chat/db/events.php @@ -1,5 +1,4 @@ - * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ /* List of handlers */ diff --git a/mod/forum/db/events.php b/mod/forum/db/events.php index a6138e13b13..064483e6775 100644 --- a/mod/forum/db/events.php +++ b/mod/forum/db/events.php @@ -1,5 +1,4 @@ . /** - * Post-install code for the quiz module. + * Add event handlers for the quiz * - * @package mod - * @subpackage quiz + * @package mod_quiz + * @category event * @copyright 2011 The Open University * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ diff --git a/portfolio/googledocs/db/events.php b/portfolio/googledocs/db/events.php index 98b9dbd340c..b0d3d0c702f 100644 --- a/portfolio/googledocs/db/events.php +++ b/portfolio/googledocs/db/events.php @@ -1,4 +1,27 @@ . + +/** + * Add event handlers for the googledocs portfolio. + * + * @package portfolio_googledocs + * @category event + * @copyright 2009 Penny Leach + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ $handlers = array ( 'user_deleted' => array ( diff --git a/portfolio/picasa/db/events.php b/portfolio/picasa/db/events.php index afca2ebd0ef..09ef7cca20c 100644 --- a/portfolio/picasa/db/events.php +++ b/portfolio/picasa/db/events.php @@ -1,4 +1,27 @@ . + +/** + * Add event handlers for the picasa portfolio. + * + * @package portfolio_picasa + * @category event + * @copyright 2009 Penny Leach + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ $handlers = array ( 'user_deleted' => array ( @@ -7,6 +30,4 @@ $handlers = array ( 'schedule' => 'cron', 'internal' => 0, ), -); - - +); \ No newline at end of file -- 2.43.0