You are here

function qformat_default::question_get_export_dir in Quiz 6.6

Same name and namespace in other branches
  1. 6.5 includes/moodle/question/format.php \qformat_default::question_get_export_dir()

get directory into which export is going

Return value

string file path

2 calls to qformat_default::question_get_export_dir()
qformat_default::exportprocess in includes/moodle/question/format.php
Do the export For most types this should not need to be overrided
qformat_qti2::exportprocess in includes/moodle/question/format/qti2/format.php
exports the questions in a question category to the given location

File

includes/moodle/question/format.php, line 797

Class

qformat_default
Base class for question import and export formats.

Code

function question_get_export_dir() {
  global $USER;
  if ($this->canaccessbackupdata) {
    $dirname = get_string("exportfilename", "quiz");
    $path = $this->course->id . '/backupdata/' . $dirname;

    // backupdata is protected directory
  }
  else {
    $path = 'temp/questionexport/' . $USER->id;
  }
  return $path;
}