You are here

public function reportQuail_api::generate_report in Quail API 8

Same name and namespace in other branches
  1. 7 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)) {
    return;
  }
  $results = $this->guideline
    ->getReport();
  if (!is_array($results)) {
    return;
  }
  foreach ($results as $quail_test_name => $test) {
    $this
      ->get_test_results($quail_test_name, $test);
  }
}