";
echo "
Business model inconsistencies have been found
\n";
// #@# later -> this is the responsibility of the caller to format the output
foreach($aErrors as $sClass => $aMessages)
{
echo "
Wrong declaration for class $sClass
\n";
echo "
\n";
$i = 0;
foreach($aMessages as $sMsg)
{
echo "- $sMsg ({$aSugFix[$sClass][$i]})
\n";
$i++;
}
echo "
\n";
}
if ($bExitOnError)
{
echo "
Aborting...
\n";
}
echo "
\n";
if ($bExitOnError)
{
exit;
}
}
}
/**
* @param string $sRepairUrl
* @param string $sSQLStatementArgName
* @param string[] $aSQLFixes
*/
public static function DBShowApplyForm($sRepairUrl, $sSQLStatementArgName, $aSQLFixes)
{
if (empty($sRepairUrl)) {
return;
}
// By design, some queries might be blank, we have to ignore them
$aCleanFixes = array();
foreach ($aSQLFixes as $sSQLFix) {
if (!empty($sSQLFix)) {
$aCleanFixes[] = $sSQLFix;
}
}
if (count($aCleanFixes) == 0) {
return;
}
echo "