00001 <?php
00027 class reportArray extends quailReporter {
00028
00033 function getReport() {
00034 $results = $this->guideline->getReport();
00035 if(!is_array($results))
00036 return null;
00037 foreach($results as $testname => $test) {
00038 $translation = $this->guideline->getTranslation($testname);
00039 $output[$testname]['severity'] = $this->guideline->getSeverity($testname);
00040 $output[$testname]['title'] = $translation['title'];
00041 $output[$testname]['body'] = $translation['description'];
00042 foreach($test as $k => $problem) {
00043 if(is_object($problem)) {
00044 $output[$testname]['problems'][$k]['element'] = htmlentities($problem->getHtml());
00045 $output[$testname]['problems'][$k]['line'] = $problem->getLine();
00046 if($problem->message) {
00047 $output[$testname]['problems']['message'] = $problem->message;
00048 }
00049 $output[$testname]['problems']['pass'] = $problem->pass;
00050 }
00051 }
00052 }
00053 return $output;
00054 }
00055 }