/* @var int Timestamp the interested parties were notified of this user's completion. */
public $timenotified;
- /* @var int Time of course enrolment {@see completion_completion::mark_enrolled()} */
+ /* @var int Time of course enrolment {@link completion_completion::mark_enrolled()} */
public $timeenrolled;
/**
- * Time the user started their course completion {@see completion_completion::mark_inprogress()}
+ * Time the user started their course completion {@link completion_completion::mark_inprogress()}
* @var int
*/
public $timestarted;
- /* @var int Timestamp of course completion {@see completion_completion::mark_complete()} */
+ /* @var int Timestamp of course completion {@link completion_completion::mark_complete()} */
public $timecompleted;
/* @var int Flag to trigger cron aggregation (timestamp) */
/* @var int Timestamp of user unenrolment (if completing a unenrol criteria) */
public $unenroled;
- /* @var int Timestamp of course criteria completion {@see completion_criteria_completion::mark_complete()} */
+ /* @var int Timestamp of course criteria completion {@link completion_criteria_completion::mark_complete()} */
public $timecompleted;
/* @var completion_criterria Associated criteria object */
*/
public function get_criteria() {
- if (!$this->_criteria)
- {
+ if (!$this->_criteria) {
global $DB;
$params = array(
}
/**
- * Return criteria status text for display in reports {@see completion_criteria::get_status()}
+ * Return criteria status text for display in reports {@link completion_criteria::get_status()}
*
* @return string
*/
*/
public function review($completion, $mark = true, $is_complete = false) {
// If we are marking this as complete
- if ($is_complete && $mark)
- {
+ if ($is_complete && $mark) {
$completion->completedself = 1;
$completion->mark_complete();
*/
defined('MOODLE_INTERNAL') || die();
-require_once $CFG->libdir.'/completionlib.php';
+require_once($CFG->libdir.'/completionlib.php');
/**
* Update user's course completion statuses
* @param bool $fetch Whether to fetch corresponding row from DB or not,
* optional fields might not be defined if false used
*/
- public function __construct($params = NULL, $fetch = true) {
+ public function __construct($params = null, $fetch = true) {
if (!empty($params) and (is_array($params) or is_object($params))) {
if ($fetch) {
if ($data = $this->fetch($params)) {
*
* @param bool $deleted Set this to true if it has been deleted.
*/
- public function notify_changed($deleted) {}
+ public function notify_changed($deleted) {
+ }
}
\ No newline at end of file
/* @var int Course id */
public $course_id;
- /* @var array Completion criteria {@see completion_info::get_criteria()} */
+ /* @var array Completion criteria {@link completion_info::get_criteria()} */
private $criteria;
/**