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.

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

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

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.

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