00001 <?php
00027 class reportStatic extends quailReporter {
00028
00033 function getReport() {
00034 $output = '';
00035 foreach($this->guideline->getReport() as $testname => $test) {
00036 if(count($test) > 0) {
00037 $severity = $this->guideline->getSeverity($testname);
00038 $translation = $this->guideline->getTranslation($testname);
00039 $output .= '<div><h3>'. $translation['title'] .'</h3><div>'. $translation['description'] .'</div>';
00040 if(is_array($test)) {
00041 foreach($test as $k => $problem) {
00042 if(is_object($problem))
00043 $output .= '<p><strong>'.($k+1).'</strong><pre>'. htmlentities($problem->getHtml()) .'</pre></p>';
00044
00045 }
00046 }
00047 $output .='</p>';
00048 switch($severity) {
00049 case QUAIL_TEST_SEVERE:
00050 $output .= 'Severe error';
00051 break;
00052 case QUAIL_TEST_MODERATE:
00053 $output .= 'Moderate error';
00054 break;
00055 case QUAIL_TEST_SUGGESTION:
00056 $output .= 'Suggestion';
00057 break;
00058 }
00059 $output .='</p></div>';
00060 }
00061 }
00062 return $output;
00063 }
00064 }