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 311 and 400] [Versions 400 and 402] [Versions 400 and 403]

(no description)

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

Defines 1 class

block_accessreview:: (10 methods):
  init()
  applicable_formats()
  has_config()
  instance_allow_multiple()
  get_content()
  can_block_be_added()
  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

can_block_be_added(moodle_page $page)   X-Ref
This block shouldn't be added to a page if the accessibility tools setting is disabled.

return: bool
param: moodle_page $page

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

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

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.

return: string
param: context $context

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

return: string
param: context $context