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.

(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