public function reportQuail_api::generate_report in Quail API 7
Same name and namespace in other branches
- 8 includes/quail_api_reporters.inc \reportQuail_api::generate_report()
Generates a static list of possible accessibility problems detected.
1 call to reportQuail_api::generate_report()
- reportQuail_api::getReport in includes/
quail_api_reporters.inc - Compatibility function provided for the quail library to call. This is the same as calling generate_report(), followed by get_report().
File
- includes/
quail_api_reporters.inc, line 36 - Contains quail reporter class objects for the quail api.
Class
- reportQuail_api
- An array reporter that generates a nested array of tests and report objects.
Code
public function generate_report() {
// reset the report variables on generation
$this->quail_api_report = array(
'report' => array(),
'total' => 0,
);
if (!is_object($this->guideline)) {
if (class_exists('cf_error')) {
cf_error::invalid_object(get_class($this) . '->guideline');
}
return;
}
$results = $this->guideline
->getReport();
if (!is_array($results)) {
return;
}
foreach ($results as $test_name => $test) {
$this
->get_test_results($test_name, $test);
}
}