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

(no description)

File Size: 452 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.

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

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.

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

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

return: string The HTML code of the table.
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.

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

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

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

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

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

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

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

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