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

(no description)

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

Defines 1 class

brickfield_accessibility_guideline:: (7 methods):
  __construct()
  get_tests()
  load_translations()
  get_translation()
  run()
  get_report()
  get_severity()


Class: brickfield_accessibility_guideline  - X-Ref

The base class for a guideline

__construct(&$dom, &$css, array &$path,$arg = null, string $domain = 'en', bool $cmsmode = false)   X-Ref
The class constructor.

param: object $dom The current DOMDocument object
param: object $css The current brickfieldCSS object
param: array $path The current path
param: null $arg
param: string $domain
param: bool $cmsmode

get_tests()   X-Ref
Returns an array of all the tests associated with the current guideline

return: array

load_translations(string $domain)   X-Ref
Loads translations from a file. This can be overriden, just as long as the
local variable 'translations' is an associative array with test function names
as the key

param: string $domain

get_translation(string $testname)   X-Ref
Returns the translation for a test name.

return: mixed
param: string $testname The function name of the test

run($arg = null, string $language = 'en')   X-Ref
Iterates through each test string, makes a new test object, and runs it against the current DOM

param: null $arg
param: string $language

get_report()   X-Ref
Returns all the Report variable

return: mixed Look to your report to see what it returns

get_severity(string $testname)   X-Ref
Returns the severity level of a given test

return: int The severity level
param: string $testname The name of the test