Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/course/togglecompletion.php File Reference

Go to the source code of this file.

Namespaces

namespace  course

Variables

 $cmid = optional_param('id', 0, PARAM_INT)
 $courseid = optional_param('course', 0, PARAM_INT)
 $confirm = optional_param('confirm', 0, PARAM_BOOL)
if(!$cmid &&!$courseid) if($courseid$targetstate = required_param('completionstate', PARAM_INT)
 $fromajax = optional_param('fromajax', 0, PARAM_INT)
switch($targetstate) $cm = get_coursemodule_from_id(null, $cmid, null, false, MUST_EXIST)
 $course = $DB->get_record('course', array('id'=>$cm->course), '*', MUST_EXIST)
if(isguestuser()
or!confirm_sesskey()) 
$completion = new completion_info($course)

Variable Documentation

switch ($targetstate) $cm = get_coursemodule_from_id(null, $cmid, null, false, MUST_EXIST)

Definition at line 126 of file togglecompletion.php.

Definition at line 30 of file togglecompletion.php.

if (isguestuser() or!confirm_sesskey()) $completion = new completion_info($course)

Definition at line 137 of file togglecompletion.php.

Definition at line 32 of file togglecompletion.php.

Definition at line 127 of file togglecompletion.php.

Definition at line 31 of file togglecompletion.php.

$fromajax = optional_param('fromajax', 0, PARAM_INT)

Definition at line 113 of file togglecompletion.php.

if (!$cmid &&!$courseid) if ($courseid) $targetstate = required_param('completionstate', PARAM_INT)

Definition at line 112 of file togglecompletion.php.

 All Data Structures Namespaces Files Functions Variables Enumerations