Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.
/question/ -> lib.php (source)

Differences Between: [Versions 310 and 403] [Versions 311 and 403] [Versions 39 and 403] [Versions 400 and 403] [Versions 401 and 403] [Versions 402 and 403]

Question related functions. This file was created just because Fragment API expects callbacks to be defined on lib.php

Copyright: 2018 Simey Lameze <simey@moodle.com>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 151 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 2 functions


Functions that are not part of a class:

core_question_output_fragment_tags_form($args)   X-Ref
Question tags fragment callback.

param: array $args Arguments to the form.
return: null|string The rendered form.

core_question_output_fragment_question_data(array $args)   X-Ref
Question data fragment to get the question html via ajax call.

param: array $args Arguments for rendering the fragment. Expected keys:
return: array|string