protected function ExternalLibraries()
{
$css = new \Stdclass();
$css->displayTitles = true;
$css->titles = array('Library', 'Folder', 'Home page');
$css->readOrder = $css->titles;
$externallibraries = $this->loadJson('externallibraries.json');
$data = array();
$res = $this->datastore->query('SELECT library AS Library, file AS Folder FROM externallibraries ORDER BY library');
while ($row = $res->fetchArray(SQLITE3_ASSOC)) {
$url = $externallibraries->{strtolower($row['Library'])}->homepage;
if (empty($url)) {
$row['Home page'] = '';
} else {
$row['Home page'] = "<a href=\"" . $url . "\">" . $row['Library'] . " <i class=\"fa fa-sign-out\"></i></a>";
}
$data[] = $row;
}
$return = $this->formatText(<<<TEXT
This is the list of analyzers that were run. Those that doesn t have result will not be listed in the 'Analyzers' section.
This may be due to PHP version or PHP configuration incompatibilities.
TEXT
, 'textLead') . $this->formatSimpleTable($data, $css);
return $return;
}