✨ Add a way to get all element in order
Will be very useful for help and admin
This commit is contained in:
parent
d9d101c08e
commit
ecc7ab1d3f
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