Port entirely to a MVC-like pattern #37
1 changed files with 4 additions and 0 deletions
|
@ -15,6 +15,10 @@ class Repository {
|
|||
return $this->fetchAll("SELECT * FROM {{table}}");
|
||||
}
|
||||
|
||||
public function getAllInOrder() {
|
||||
return $this->fetchAll("SELECT * FROM {{table}} ORDER BY id");
|
||||
}
|
||||
|
||||
protected function doquery($query, $params = []) {
|
||||
global $db;
|
||||
return $db->doquery($this->table, $query, $params);
|
||||
|
|
Loading…
Add table
Reference in a new issue