Search moodle.org's
Developer Documentation

See Release Notes

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

Differences Between: [Versions 311 and 403] [Versions 400 and 403] [Versions 401 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.

param: moodle_page $page
return: bool

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