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) |
| | $cm = get_coursemodule_from_id('folder', $id, 0, false, MUST_EXIST) |
| | $context = get_context_instance(CONTEXT_MODULE, $cm->id, MUST_EXIST) |
| | $folder = $DB->get_record('folder', array('id'=>$cm->instance), '*', MUST_EXIST) |
| | $course = $DB->get_record('course', array('id'=>$cm->course), '*', MUST_EXIST) |
| | $data = new stdClass() |
| $data | id = $cm->id |
| | $options = array('mainfile'=>true, 'subdirs'=>1, 'maxbytes'=>$CFG->maxbytes, 'maxfiles'=>-1, 'accepted_types'=>'*', 'return_types'=>FILE_INTERNAL) |
| | $mform = new mod_folder_edit_form(null, array('data'=>$data, 'options'=>$options)) |
| if($mform->is_cancelled()) else | if ($formdata=$mform->get_data()) |
Variable Documentation
| $options = array('mainfile'=>true, 'subdirs'=>1, 'maxbytes'=>$CFG->maxbytes, 'maxfiles'=>-1, 'accepted_types'=>'*', 'return_types'=>FILE_INTERNAL) |
| if ($mform->is_cancelled()) else if($formdata=$mform->get_data()) |