X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/bd04ce62e039b090d4b5ec2c0baa767defde2fc4..58852b3eebf712dbf0e87a2a7aa98ba6b39ef02d:/lib/DebugHtml.php?ds=sidebyside diff --git a/lib/DebugHtml.php b/lib/DebugHtml.php index 0f5af241..98da8794 100644 --- a/lib/DebugHtml.php +++ b/lib/DebugHtml.php @@ -71,6 +71,21 @@ class Debug echo "\n"; } + public static function printGroupedSearch($aSearches, $aWordsIDs) + { + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + foreach ($aSearches as $iRank => $aRankedSet) { + foreach ($aRankedSet as $aRow) { + $aRow->dumpAsHtmlTableRow($aWordsIDs); + } + } + echo '
rankName TokensName NotAddress TokensAddress Notcountryoperatorclasstypepostcodehousenumber
'; + } + public static function printGroupTable($sHeading, $aVar) { echo ''.$sHeading.":\n"; @@ -138,6 +153,10 @@ class Debug $sPre = ', '; } } + } elseif (is_object($mVar) && method_exists($mVar, 'debugInfo')) { + Debug::outputVar($mVar->debugInfo(), $sPreNL); + } elseif (is_a($mVar, 'stdClass')) { + Debug::outputVar(json_decode(json_encode($mVar), true), $sPreNL); } else { Debug::outputSimpleVar($mVar); }