Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

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

(no description)

File Size: 310 lines (11 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

block_accessreview:: (9 methods):
  init()
  applicable_formats()
  has_config()
  instance_allow_multiple()
  get_content()
  get_table_data()
  get_toggle_link()
  get_download_link()
  get_report_link()


Class: block_accessreview  - X-Ref

Definition of the accessreview block.

init()   X-Ref
Sets the block title.


applicable_formats()   X-Ref
Defines where the block can be added.

return: array

has_config()   X-Ref
Controls global configurability of block.

return: bool

instance_allow_multiple()   X-Ref
Controls whether multiple block instances are allowed.

return: bool

get_content()   X-Ref
Creates the block's main content

return: string|stdClass

get_table_data($courseid)   X-Ref
Fetches and groups the relevent error data for the table to display.

param: int $courseid The ID of the course.
return: array The data required by the table.

get_toggle_link()   X-Ref
Get the link to toggle the heatmap.

return: string

get_download_link(context $context)   X-Ref
Get the link to download a report for the specified context.

param: context $context
return: string

get_report_link(context $context)   X-Ref
Get the report link for the specified context.

param: context $context
return: string