function qformat_coursetestmanager::findfile in Quiz 6.5
Same name and namespace in other branches
- 6.6 includes/moodle/question/format/coursetestmanager/format.php \qformat_coursetestmanager::findfile()
1 call to qformat_coursetestmanager::findfile()
- qformat_coursetestmanager::connect_win in includes/
moodle/ question/ format/ coursetestmanager/ format.php
File
- includes/
moodle/ question/ format/ coursetestmanager/ format.php, line 465
Class
Code
function findfile($filename) {
global $CFG;
$dirs = $this
->getcoursedirs();
$dirs[] = $CFG->dirroot . "\\mod\\quiz\format";
foreach ($dirs as $dir) {
$file = $dir . "\\System.mda";
// look for System.mda
if (is_file($file)) {
return $file;
}
}
return false;
}