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: 455 lines (18 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

renderer:: (8 methods):
  display()
  image_path()
  pdf_renderer()
  render_table()
  get_ratio_table()
  get_group_table()
  get_inaccessible_table()
  get_errors_table()


Class: renderer  - X-Ref

tool_brickfield/printable renderer

display(\stdClass $data, filter $filter)   X-Ref
Render the page containing the Printable report.

param: \stdClass $data Report data.
param: filter $filter Display filters.
return: String HTML showing charts.

image_path()   X-Ref
Return the path to use for PDF images.

return: string

pdf_renderer(\stdClass $data, filter $filter)   X-Ref
Renders the accessability report using the pdflib.

param: \stdClass $data Report data.
param: filter $filter Display filters.
return: void

render_table(array $headers, array $data, string $title, array $widths)   X-Ref
Builds the HTML for a styled table used in the pdf report.

param: array $headers The headers of the table.
param: array $data The table data.
param: string $title The title of the table.
param: array $widths The widths of the table columns.
return: string The HTML code of the table.

get_ratio_table(\stdClass $data)   X-Ref
Gets the Activity Pass Ratio table.

param: \stdClass $data Report data.
return: string The HTML code of the table.

get_group_table(\stdClass $data)   X-Ref
Gets the Check Errors table.

param: \stdClass $data Report data.
return: string The HTML code of the table.

get_inaccessible_table(\stdClass $data)   X-Ref
Gets the Failed Activities table.

param: \stdClass $data Report data.
return: string The HTML code of the table.

get_errors_table(\stdClass $data)   X-Ref
Gets the Top Errors table.

param: \stdClass $data Report data.
return: string The HTML code of the table.