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.

(no description)

File Size: 82 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

brickfield_accessibility_table_test:: (2 methods):
  get_table()
  is_data()


Class: brickfield_accessibility_table_test  - X-Ref

Special base class which provides helper methods for tables.

get_table(\stdClass $table)   X-Ref
Takes the element object of a main table and returns the number of rows and columns in it.

return: array An array with the 'rows' value showing the number of rows, and column showing the number of columns
param: \stdClass $table

is_data($table)   X-Ref
Finds whether or not the table is a data table. Checks that the
table has a logical order and uses 'th' or 'thead' tags to illustrate
the page author thought it was a data table.

return: bool TRUE if the element is a data table, otherwise false
param: object $table The DOMElement object of the table tag