getAllVariants();
$unknowns = $db->getUnknownRefs();
if (count($unknowns) > 0) {
$variants = array();
foreach ($unknowns as $uref) {
$variants[$uref] = '';
}
$allVars['Unknown'] = array(
'Variants' => $variants,
);
}
foreach ($allVars as $family => $models) {
foreach ($models as $model => $variants) {
echo '' . $family . ' ' . $model . '
' . PHP_EOL;
$allVersions = $db->getAllVersionsForModel($model);
echo '';
foreach ($variants as $ref => $name) {
echo '' . $ref . ' | ';
$refVersions = $db->getAllVersionsForRef($ref);
foreach ($allVersions as $v) {
if (in_array($v, $refVersions, true)) {
echo '' . $v . ' | ';
} else {
echo '------ | ';
}
}
echo '
' . PHP_EOL;
}
echo '
';
}
}
?>