You are here

function qformat_coursetestmanager::findfile in Quiz 6.6

Same name and namespace in other branches
  1. 6.5 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

qformat_coursetestmanager

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;
}