public function showRecords()
{
// Displays the records if there
if (self::$hasRecords) {
$html = null;
foreach (self::$hasRecords as $row) {
$html .= '<div>- #' . $row['id'] . ' ' . ucwords($row['firstname']) . ' ' . ucwords($row['lastname']) . ($row['mail'] ? ' [' . $row['mail'] . ']' : NULL) . '</div>';
}
return $html;
} else {
return '<div>No record at the time.</div>';
}
}