Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

Library functions used by qbank_exportquestions/export.php. This code is based on lib/questionlib.php by Martin Dougiamas.

Author: Guillermo Gomez Arias <guillermogomez@catalyst-au.net>
Copyright: 2021 Catalyst IT Australia Pty Ltd
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 58 lines (2 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

exportquestions_helper:: (1 method):
  question_make_export_url()


Class: exportquestions_helper  - X-Ref

Class exportquestions_helper contains all the library functions.

question_make_export_url($contextid, $categoryid, $format, $withcategories,$withcontexts, $filename)   X-Ref
Create url for question export.

return: moodle_url Return an URL.
param: int $contextid Current context.
param: int $categoryid Category id.
param: string $format Format.
param: string $withcategories nocategories or withcategories text.
param: string $withcontexts nocontexts or withcontexts text.
param: string $filename File name.