Go to the source code of this file.
Variables |
| | $id = optional_param('id', 0, PARAM_INT) |
| | $name = optional_param('name', '', PARAM_RAW) |
| | $edit = optional_param('edit', -1, PARAM_BOOL) |
| | $hide = optional_param('hide', 0, PARAM_INT) |
| | $show = optional_param('show', 0, PARAM_INT) |
| | $idnumber = optional_param('idnumber', '', PARAM_RAW) |
| | $section = optional_param('section', 0, PARAM_INT) |
| | $move = optional_param('move', 0, PARAM_INT) |
| | $marker = optional_param('marker',-1 , PARAM_INT) |
| | $switchrole = optional_param('switchrole',-1, PARAM_INT) |
| | $reset_user_allowed_editing = false |
if($switchrole >
0 &&confirm_sesskey()&&has_capability('moodle/role:switchroles',
$context)) | if (file_exists($CFG->dirroot.'/course/externservercourse.php')) |
| $course | format = clean_param($course->format, PARAM_ALPHA) |
| if($course->id==SITEID) | $useajax = false |
| | $formatajax = course_format_ajax_support($course->format) |
if(!empty($CFG->
enablecourseajax) and
$formatajax->capable and!empty($USER->
editing) and ajaxenabled($formatajax->
testedbrowsers) and $PAGE->
theme->enablecourseajax and
has_capability('moodle/course:manageactivities',
$context)) $CFG | blocksdrag = $useajax |
| | $completion = new completion_info($course) |
| | $modinfo = & get_fast_modinfo($COURSE) |
Variable Documentation
| $reset_user_allowed_editing = false |
| if (!empty($CFG->enablecourseajax) and $formatajax->capable and!empty($USER->editing) and ajaxenabled($formatajax->testedbrowsers) and $PAGE->theme->enablecourseajax and has_capability('moodle/course:manageactivities', $context)) $CFG blocksdrag = $useajax |