Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

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

(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.

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.