protected function ExternalConfigFiles()
{
$css = new \Stdclass();
$css->displayTitles = true;
$css->titles = array('Service', 'File', 'Home page');
$css->readOrder = $css->titles;
$data = array();
$res = $this->datastore->query('SELECT name AS Service, file AS File, homepage AS url FROM configFiles');
while ($row = $res->fetchArray(SQLITE3_ASSOC)) {
if (empty($row['url'])) {
$row['Home page'] = '';
} else {
$row['Home page'] = "<a href=\"" . $row['url'] . "\">" . $row['Service'] . " <i class=\"fa fa-sign-out\"></i></a>";
}
$data[] = $row;
}
$return = $this->formatText(<<<TEXT
List services being used in this code repository, based on config files that are committed. For example, a .git folder is an artefact of a GIT repository.
TEXT
, 'textLead');
$return .= $this->formatSimpleTable($data, $css);
return $return;
}