static function getTemplates() { global $dbh; $sql = "SELECT * FROM fac_SensorTemplate ORDER BY ManufacturerID, Model ASC;"; $tempList = array(); foreach ($dbh->query($sql) as $row) { $tempList[] = SensorTemplate::RowToObject($row); } return $tempList; }