Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.x is supported too.

Differences Between: [Versions 400 and 402]

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