Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

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.

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.
return: moodle_url Return an URL.