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

Go to the source code of this file.

Namespaces

namespace  mod
 

Local Library of functions for module scorm.


Variables

 $pageid = required_param('pageid', PARAM_INT)
 $id = required_param('id', PARAM_INT)
 $qtype = optional_param('qtype', 0, PARAM_INT)
 $edit = optional_param('edit', false, PARAM_BOOL)
 $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)
 $manager = lesson_page_type_manager::get($lesson)
 $editoroptions = array('noclean'=>true, 'maxfiles'=>EDITOR_UNLIMITED_FILES, 'maxbytes'=>$CFG->maxbytes)
if($qtype) $mform = $manager->get_page_form($qtype, array('editoroptions'=>$editoroptions, 'jumpto'=>$jumpto, 'lesson'=>$lesson, 'edit'=>$edit, 'maxbytes'=>$PAGE->course->maxbytes))

Variable Documentation

Definition at line 37 of file editpage.php.

Definition at line 43 of file editpage.php.

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

Definition at line 38 of file editpage.php.

Definition at line 35 of file editpage.php.

$editoroptions = array('noclean'=>true, 'maxfiles'=>EDITOR_UNLIMITED_FILES, 'maxbytes'=>$CFG->maxbytes)

Definition at line 58 of file editpage.php.

Definition at line 33 of file editpage.php.

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

Definition at line 39 of file editpage.php.

Definition at line 57 of file editpage.php.

if ($qtype) $mform = $manager->get_page_form($qtype, array('editoroptions'=>$editoroptions, 'jumpto'=>$jumpto, 'lesson'=>$lesson, 'edit'=>$edit, 'maxbytes'=>$PAGE->course->maxbytes))

Definition at line 76 of file editpage.php.

Definition at line 32 of file editpage.php.

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

Definition at line 34 of file editpage.php.

 All Data Structures Namespaces Files Functions Variables Enumerations