public function __construct($records, $headings) { $i = -1; if (empty($_GET)) { foreach ($records as $record) { $i++; // call the html class \classes\Html\html::makeLink('record', $i, $record['INSTNM']); } } }