view->escape($node->getTitle());
$status = $node->getStatus();
if ($levels > 1) {
$statusClass = 'tlv-status-section';
} else {
$statusClass = 'tlv-status-tile';
}
$statusClasses = array($statusClass, $status->getOverall());
$htm .= sprintf(
'
' . "\n",
join(' ', $classes + $statusClasses),
$title
);
$badges = $this->view->badges($status);
$htm .= $this->view->qlink(
$title . $badges,
'toplevelview/show/tree',
array(
'name' => $node->getRoot()->getConfig()->getName(),
'id' => $node->getFullId()
),
array(
'class' => 'tlv-tile-title'
),
false
);
if ($levels > 1 && $node->hasChildren()) {
$htm .= '
';
foreach ($node->getChildren() as $child) {
$htm .= $this->tiles($child, $levels - 1, $classes);
}
$htm .= '
';
}
$htm .= "
\n";
return $htm;
}
}