';
$lines[] = $prefix . ' ' . $lc->id . ' | ';
$name = self::h($lc->name);
if (isset($lc->supersededBy)) {
$name .= '
Superseded by ' . $lc->supersededBy . '';
}
$lines[] = $prefix . ' ' . $name . ' | ';
$lines[] = $prefix . ' ' . count($lc->categories) . ' | ';
$lines[] = $prefix . ' ' . self::h($lc->formula) . ' | ';
$cases = array();
foreach ($lc->categories as $c) {
$cases[] = '' . $c->id . '' . self::h($c->examples) . '
';
}
$lines[] = $prefix . ' ' . implode('', $cases) . ' | ';
$lines[] = $prefix . '
';
}
$lines[] = $prefix . '