|
Moodle
2.2.1
http://www.collinsharper.com
|
Go to the source code of this file.
Namespaces | |
| namespace | course |
Variables | |
| $id = required_param('id',PARAM_INT) | |
| $section = $DB->get_record('course_sections', array('id' => $id), '*', MUST_EXIST) | |
| $course = $DB->get_record('course', array('id' => $section->course), '*', MUST_EXIST) | |
| $context = get_context_instance(CONTEXT_COURSE, $course->id) | |
| $editoroptions = array('context'=>$context ,'maxfiles' => EDITOR_UNLIMITED_FILES, 'maxbytes'=>$CFG->maxbytes, 'trusttext'=>false, 'noclean'=>true) | |
| $section | usedefaultname = (is_null($section->name)) |
| $mform = new editsection_form(null, array('course'=>$course, 'editoroptions'=>$editoroptions)) | |
| if($mform->is_cancelled()) else if($data=$mform->get_data()) | $sectionname = get_section_name($course, $section) |
| If data submitted, then process and store. | |
| $stredit = get_string('edita', '', " $sectionname") | |
| $strsummaryof = get_string('summaryof', '', " $sectionname") | |
Definition at line 39 of file editsection.php.
| $course = $DB->get_record('course', array('id' => $section->course), '*', MUST_EXIST) |
Definition at line 36 of file editsection.php.
| $editoroptions = array('context'=>$context ,'maxfiles' => EDITOR_UNLIMITED_FILES, 'maxbytes'=>$CFG->maxbytes, 'trusttext'=>false, 'noclean'=>true) |
Definition at line 42 of file editsection.php.
| $id = required_param('id',PARAM_INT) |
Definition at line 31 of file editsection.php.
| $mform = new editsection_form(null, array('course'=>$course, 'editoroptions'=>$editoroptions)) |
Definition at line 45 of file editsection.php.
| $section = $DB->get_record('course_sections', array('id' => $id), '*', MUST_EXIST) |
Definition at line 35 of file editsection.php.
| if ($mform->is_cancelled()) else if ($data=$mform->get_data()) $sectionname = get_section_name($course, $section) |
If data submitted, then process and store.
Definition at line 67 of file editsection.php.
| $stredit = get_string('edita', '', " $sectionname") |
Definition at line 68 of file editsection.php.
| $strsummaryof = get_string('summaryof', '', " $sectionname") |
Definition at line 69 of file editsection.php.
| $section usedefaultname = (is_null($section->name)) |
Definition at line 44 of file editsection.php.