|
| complete_urls (string $html, string $url) |
| Turns all relative links to absolute links so that the page can be rendered correctly.
|
|
| get_report () |
| The get_report method - we iterate through every test item and add additional attributes to build the report UI.
|
|
| parse_url (string $url) |
| A helper function for completeURLs.
|
|
| set_absolute_path (&$element) |
| Sets the absolute path for an element.
|
|
| set_options (array $options) |
| Sets options for the reporter.
|
|
| strnpos ($haystack, $needle, $occurance, int $pos=0) |
| Finds the final postion of a needle in the haystack.
|
|
|
array | $absoluteattributes = ['src', 'href'] |
| An array of attributes to search for to turn into absolute paths rather than relative paths.
|
|
array | $classnames |
| An array of the classnames to be associated with items.
|
|
object | $css |
| The current brickfieldaccessibilitycss object.
|
|
object | $dom |
| The current document's DOMDocument.
|
|
object null object | $guideline = null |
| A guideline object.
|
|
return | $html |
|
object | $options |
| Additional options for this reporter.
|
|
array | $path |
| The path to the current document.
|
|
array | $report |
| A collection of ReportItem objects.
|
|
array | $translation |
| An array of test names and the translation for the problems with it.
|
|
◆ complete_urls()
tool_brickfield\local\htmlchecker\reporters\report_demo::complete_urls |
( |
string | $html, |
|
|
string | $url ) |
Turns all relative links to absolute links so that the page can be rendered correctly.
- Parameters
-
string | $html | A complete HTML document |
string | $url | The absolute URL to the document |
- Return values
-
string | A HTML document with all the relative links converted to absolute links |
◆ get_report()
tool_brickfield\local\htmlchecker\reporters\report_demo::get_report |
( |
| ) |
|
The get_report method - we iterate through every test item and add additional attributes to build the report UI.
- Return values
-
string | A fully-formed HTML document. |
◆ parse_url()
tool_brickfield\local\htmlchecker\reporters\report_demo::parse_url |
( |
string | $url | ) |
|
A helper function for completeURLs.
Parses a URL into an the scheme, host, and path
- Parameters
-
string | $url | The URL to parse |
- Return values
-
array | An array that includes the scheme, host, and path of the URL |
◆ set_absolute_path()
tool_brickfield\local\htmlchecker\brickfield_accessibility_reporter::set_absolute_path |
( |
& | $element | ) |
|
|
inherited |
Sets the absolute path for an element.
- Parameters
-
object | $element | A DOMElement object to turn into an absolute path |
◆ set_options()
tool_brickfield\local\htmlchecker\brickfield_accessibility_reporter::set_options |
( |
array | $options | ) |
|
|
inherited |
Sets options for the reporter.
- Parameters
-
array | $options | an array of options |
◆ strnpos()
tool_brickfield\local\htmlchecker\reporters\report_demo::strnpos |
( |
| $haystack, |
|
|
| $needle, |
|
|
| $occurance, |
|
|
int | $pos = 0 ) |
Finds the final postion of a needle in the haystack.
- Parameters
-
mixed | $haystack | |
mixed | $needle | |
mixed | $occurance | |
int | $pos | |
- Return values
-
◆ $classnames
array tool_brickfield\local\htmlchecker\reporters\report_demo::$classnames |
Initial value:
An array of the classnames to be associated with items.
The documentation for this class was generated from the following file:
- admin/tool/brickfield/classes/local/htmlchecker/reporters/report_demo.php