|
Moodle
2.2.1
http://www.collinsharper.com
|
Go to the source code of this file.
Namespaces | |
| namespace | core |
Variables | |
| $cmid = required_param('cmid', PARAM_INT) | |
| $courseid = required_param('course', PARAM_INT) | |
| $course = $DB->get_record('course', array('id' => $courseid), '*', MUST_EXIST) | |
| $cm = get_coursemodule_from_id('', $cmid, $course->id, true, MUST_EXIST) | |
| $cmcontext = get_context_instance(CONTEXT_MODULE, $cm->id) | |
| $context = get_context_instance(CONTEXT_COURSE, $courseid) | |
| $section = $DB->get_record('course_sections', array('id' => $cm->section, 'course' => $cm->course)) | |
| $output = $PAGE->get_renderer('core', 'backup') | |
| $bc | |
| $backupid = $bc->get_backupid() | |
| $backupbasepath = $bc->get_plan()->get_basepath() | |
| $rc | |
| $newcmid = null | |
| $tasks = $rc->get_plan()->get_tasks() | |
| if(empty($CFG-> keeptempdirectoriesonbackup)) | $a = new stdClass() |
| $a | modtype = get_string('modulename', $cm->modname) |
| $a | modname = format_string($cm->name) |
| if (empty($CFG->keeptempdirectoriesonbackup)) $a = new stdClass() |
Definition at line 120 of file modduplicate.php.
| $backupbasepath = $bc->get_plan()->get_basepath() |
Definition at line 64 of file modduplicate.php.
| $backupid = $bc->get_backupid() |
Definition at line 63 of file modduplicate.php.
| $bc |
new backup_controller(backup::TYPE_1ACTIVITY, $cm->id, backup::FORMAT_MOODLE, backup::INTERACTIVE_NO, backup::MODE_IMPORT, $USER->id)
Definition at line 60 of file modduplicate.php.
| $cm = get_coursemodule_from_id('', $cmid, $course->id, true, MUST_EXIST) |
Definition at line 39 of file modduplicate.php.
| $cmcontext = get_context_instance(CONTEXT_MODULE, $cm->id) |
Definition at line 40 of file modduplicate.php.
| $cmid = required_param('cmid', PARAM_INT) |
Definition at line 35 of file modduplicate.php.
Definition at line 41 of file modduplicate.php.
| $course = $DB->get_record('course', array('id' => $courseid), '*', MUST_EXIST) |
Definition at line 38 of file modduplicate.php.
| $courseid = required_param('course', PARAM_INT) |
Definition at line 36 of file modduplicate.php.
| $newcmid = null |
Definition at line 94 of file modduplicate.php.
| $output = $PAGE->get_renderer('core', 'backup') |
Definition at line 56 of file modduplicate.php.
| $rc |
new restore_controller($backupid, $courseid, backup::INTERACTIVE_NO, backup::MODE_IMPORT, $USER->id, backup::TARGET_CURRENT_ADDING)
Definition at line 72 of file modduplicate.php.
Definition at line 42 of file modduplicate.php.
| $tasks = $rc->get_plan()->get_tasks() |
Definition at line 95 of file modduplicate.php.
| $a modname = format_string($cm->name) |
Definition at line 122 of file modduplicate.php.
| $a modtype = get_string('modulename', $cm->modname) |
Definition at line 121 of file modduplicate.php.