MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup
This commit is contained in:
+17
-20
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
// This file is part of Moodle - http://moodle.org/
|
||||
//
|
||||
// This file is part of Moodle - http://moodle.org/
|
||||
//
|
||||
// Moodle 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
|
||||
@@ -11,7 +11,7 @@
|
||||
// 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.
|
||||
//
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
* by students ('completion')
|
||||
*
|
||||
* Completion top-level options (admin setting enablecompletion)
|
||||
*
|
||||
*
|
||||
* @package moodlecore
|
||||
* @copyright 1999 onwards Martin Dougiamas {@link http://moodle.com}
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
@@ -113,8 +113,8 @@ class completion_info {
|
||||
|
||||
/**
|
||||
* Determines whether completion is enabled across entire site.
|
||||
*
|
||||
* Static function.
|
||||
*
|
||||
* Static function.
|
||||
*
|
||||
* @global object
|
||||
* @return int COMPLETION_ENABLED (true) if completion is enabled for the site,
|
||||
@@ -396,7 +396,7 @@ class completion_info {
|
||||
|
||||
/**
|
||||
* Deletes completion state related to an activity for all users.
|
||||
*
|
||||
*
|
||||
* Intended for use only when the activity itself is deleted.
|
||||
*
|
||||
* @global object
|
||||
@@ -420,12 +420,12 @@ class completion_info {
|
||||
|
||||
/**
|
||||
* Recalculates completion state related to an activity for all users.
|
||||
*
|
||||
*
|
||||
* Intended for use if completion conditions change. (This should be avoided
|
||||
* as it may cause some things to become incomplete when they were previously
|
||||
* complete, with the effect - for example - of hiding a later activity that
|
||||
* was previously available.)
|
||||
*
|
||||
*
|
||||
* Resetting state of manual tickbox has same result as deleting state for
|
||||
* it.
|
||||
*
|
||||
@@ -479,8 +479,8 @@ class completion_info {
|
||||
* fill the cache, retrieves information from the entire course not just for
|
||||
* this one activity
|
||||
* @param int $userid User ID or 0 (default) for current user
|
||||
* @param array $modinfo Supply the value here - this is used for unit
|
||||
* testing and so that it can be called recursively from within
|
||||
* @param array $modinfo Supply the value here - this is used for unit
|
||||
* testing and so that it can be called recursively from within
|
||||
* get_fast_modinfo. (Needs only list of all CMs with IDs.)
|
||||
* Otherwise the method calls get_fast_modinfo itself.
|
||||
* @return object Completion data (record from course_modules_completion)
|
||||
@@ -593,7 +593,7 @@ class completion_info {
|
||||
/**
|
||||
* Updates completion data for a particular coursemodule and user (user is
|
||||
* determined from $data).
|
||||
*
|
||||
*
|
||||
* (Internal function. Not private, so we can unit-test it.)
|
||||
*
|
||||
* @global object
|
||||
@@ -687,10 +687,10 @@ class completion_info {
|
||||
/**
|
||||
* Obtains progress information across a course for all users on that course, or
|
||||
* for all users in a specific group. Intended for use when displaying progress.
|
||||
*
|
||||
*
|
||||
* This includes only users who, in course context, have one of the roles for
|
||||
* which progress is tracked (the progresstrackedroles admin option).
|
||||
*
|
||||
*
|
||||
* Users are included (in the first array) even if they do not have
|
||||
* completion progress for any course-module.
|
||||
*
|
||||
@@ -788,7 +788,7 @@ WHERE
|
||||
* Calculates the completion state that would result from a graded item
|
||||
* (where grade-based completion is turned on) based on the actual grade
|
||||
* and settings.
|
||||
*
|
||||
*
|
||||
* Internal function. Not private, so we can unit-test it.
|
||||
*
|
||||
* @uses COMPLETION_INCOMPLETE
|
||||
@@ -837,8 +837,8 @@ WHERE
|
||||
$CFG->wwwroot.'/course/view.php?id='.$this->course->id,null,$error);
|
||||
}
|
||||
|
||||
/**
|
||||
* For testing only. Wipes information cached in user session.
|
||||
/**
|
||||
* For testing only. Wipes information cached in user session.
|
||||
*
|
||||
* @global object
|
||||
*/
|
||||
@@ -848,6 +848,3 @@ WHERE
|
||||
unset($SESSION->completioncacheuserid);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user