| [ Index ] |
PHP Cross Reference of Moodle 1.9.3 [Build 15-Oct-2008] |
[Summary view] [Print] [Text view]
1 <?php // $Id: report.php,v 1.6 2007/08/17 19:09:12 nicolasconnault Exp $ 2 // Display all the interfaces for importing data into a specific course 3 4 require_once ('../config.php'); 5 6 $id = required_param('id', PARAM_INT); // course id to import TO 7 8 if (!$course = get_record('course', 'id', $id)) { 9 error("That's an invalid course id"); 10 } 11 12 require_login($course->id); 13 14 require_capability('moodle/site:viewreports', get_context_instance(CONTEXT_COURSE, $course->id)); 15 16 $strreports = get_string('reports'); 17 18 $navlinks = array(); 19 $navlinks[] = array('name' => $strreports, 'link' => null, 'type' => 'misc'); 20 $navigation = build_navigation($navlinks); 21 print_header($course->fullname.': '.$strreports, $course->fullname.': '.$strreports, $navigation); 22 23 $directories = get_list_of_plugins('course/report'); 24 25 foreach ($directories as $directory) { 26 $pluginfile = $CFG->dirroot.'/course/report/'.$directory.'/mod.php'; 27 if (file_exists($pluginfile)) { 28 echo '<div class="plugin">'; 29 //echo $pluginfile; 30 include_once($pluginfile); // Fragment for listing 31 echo '</div>'; 32 } 33 } 34 35 print_footer(); 36 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed Jan 14 11:33:29 2009 | Cross-referenced by PHPXref 0.7 |