|
Moodle
2.2.1
http://www.collinsharper.com
|
Go to the source code of this file.
Variables | |
| $id = required_param('id', PARAM_INT) | |
| $delete = optional_param('delete', '', PARAM_ALPHANUM) | |
| $site = get_site() | |
| $strdeletecourse = get_string("deletecourse") | |
| $stradministration = get_string("administration") | |
| $strcategories = get_string("categories") | |
| if(!$course=$DB->get_record("course", array("id"=> $id))) if($site-> id==$course->id) | $coursecontext = get_context_instance(CONTEXT_COURSE, $course->id) |
| if(!can_delete_course($id)) | $category = $DB->get_record("course_categories", array("id"=>$course->category)) |
| $courseshortname = format_string($course->shortname, true, array('context' => get_context_instance(CONTEXT_COURSE, $course->id))) | |
| $categoryname = format_string($category->name, true, array('context' => get_context_instance(CONTEXT_COURSECAT, $category->id))) | |
| $strdeletingcourse = get_string("deletingcourse", "", $courseshortname) | |
| if (!can_delete_course($id)) $category = $DB->get_record("course_categories", array("id"=>$course->category)) |
Definition at line 34 of file delete.php.
| $categoryname = format_string($category->name, true, array('context' => get_context_instance(CONTEXT_COURSECAT, $category->id))) |
Definition at line 36 of file delete.php.
| if (!$course=$DB->get_record("course", array("id"=> $id))) if ($site->id==$course->id) $coursecontext = get_context_instance(CONTEXT_COURSE, $course->id) |
Definition at line 28 of file delete.php.
| $courseshortname = format_string($course->shortname, true, array('context' => get_context_instance(CONTEXT_COURSE, $course->id))) |
Definition at line 35 of file delete.php.
| $delete = optional_param('delete', '', PARAM_ALPHANUM) |
Definition at line 8 of file delete.php.
| $id = required_param('id', PARAM_INT) |
Definition at line 7 of file delete.php.
| $site = get_site() |
Definition at line 14 of file delete.php.
| $stradministration = get_string("administration") |
Definition at line 17 of file delete.php.
| $strcategories = get_string("categories") |
Definition at line 18 of file delete.php.
| $strdeletecourse = get_string("deletecourse") |
Definition at line 16 of file delete.php.
| $strdeletingcourse = get_string("deletingcourse", "", $courseshortname) |
Definition at line 70 of file delete.php.