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.

Differences Between: [Versions 400 and 401] [Versions 400 and 402] [Versions 400 and 403]

Helper functions and callbacks.

Author: Safat Shahin <safatshahin@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: 137 lines (5 kb)
Included or required:0 times
Referenced: 1 time
Includes or requires: 0 files

Defines 5 functions


Functions that are not part of a class:

qbank_comment_comment_validate($commentparam)   X-Ref
Validate comment parameter before perform other comments actions.

return: boolean
param: stdClass $commentparam

qbank_comment_comment_permissions($args)   X-Ref
Running additional permission check on plugins.

return: array
param: stdClass $args

qbank_comment_comment_display($comments, $args)   X-Ref
Validate comment data before displaying comments.

return: array $comments
param: array $comments
param: stdClass $args

qbank_comment_preview_display($question, $courseid)   X-Ref
Comment content for callbacks.

return: string
param: question_definition $question
param: int $courseid

qbank_comment_output_fragment_question_comment($args)   X-Ref
Question comment fragment callback.

return: string rendered output
param: array $args