Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

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

(no description)

File Size: 159 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.

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

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

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