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.

Differences Between: [Versions 400 and 401]

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: 142 lines (5 kb)
Included or required:0 times
Referenced: 0 times
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.

param: stdClass $commentparam
return: boolean

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

param: stdClass $args
return: array

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

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

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

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

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

param: array $args
return: string rendered output