db = new SQLiteDatabase($dbhandle); } catch (Exception $exception) { die($exception->getMessage()); } } private function lazy_programmer() { die("LAZY PROGRAMMER ERROR"); } protected function getQuery($query) { $res = $this->db->query($query, SQLITE_ASSOC, $query_error); if ($query_error) { die("ERROR: $query_error"); } $this->last_result = $res->fetchAll(SQLITE_ASSOC); return $this->last_result; } public function doQuery() { $this->lazy_programmer(); } protected function htmlHeader() { return '
| Repo Name | # ports | Type | Maintainer | Repo URL |
|---|---|---|---|---|
| ' . $repo["collname"] . " | "; $html .= "" . $repo["tot"] . " | "; $html .= '' . $repo["colltype"] . '' . " | "; $html .= "" . nospam($repo["maintainer"]) . " | " . $url . " |