Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/mod/lesson/import.php File Reference

Go to the source code of this file.

Namespaces

namespace  mod
 

Local Library of functions for module scorm.


Variables

 $id = required_param('id', PARAM_INT)
 $pageid = optional_param('pageid', '', PARAM_INT)
 $cm = get_coursemodule_from_id('lesson', $id, 0, false, MUST_EXIST)
 $course = $DB->get_record('course', array('id' => $cm->course), '*', MUST_EXIST)
 $lesson = new lesson($DB->get_record('lesson', array('id' => $cm->instance), '*', MUST_EXIST))
 $context = get_context_instance(CONTEXT_MODULE, $cm->id)
 $strimportquestions = get_string("importquestions", "lesson")
 $strlessons = get_string("modulenameplural", "lesson")
 $manager = lesson_page_type_manager::get($lesson)
 $data = new stdClass
$data id = $PAGE->cm->id
$data pageid = $pageid
 $mform = new lesson_import_form(null, array('formats'=>lesson_get_import_export_formats('import')))

Variable Documentation

Definition at line 38 of file import.php.

Definition at line 43 of file import.php.

$course = $DB->get_record('course', array('id' => $cm->course), '*', MUST_EXIST)

Definition at line 39 of file import.php.

$data = new stdClass

Definition at line 51 of file import.php.

Definition at line 33 of file import.php.

$lesson = new lesson($DB->get_record('lesson', array('id' => $cm->instance), '*', MUST_EXIST))

Definition at line 40 of file import.php.

Definition at line 49 of file import.php.

$mform = new lesson_import_form(null, array('formats'=>lesson_get_import_export_formats('import')))

Definition at line 55 of file import.php.

Definition at line 34 of file import.php.

$strimportquestions = get_string("importquestions", "lesson")

Definition at line 46 of file import.php.

$strlessons = get_string("modulenameplural", "lesson")

Definition at line 47 of file import.php.

$data id = $PAGE->cm->id

Definition at line 52 of file import.php.

Definition at line 53 of file import.php.

 All Data Structures Namespaces Files Functions Variables Enumerations