Add a way to get all element in order

Will be very useful for help and admin
This commit is contained in:
Kazhnuz 2025-04-12 15:17:28 +02:00
parent d9d101c08e
commit ecc7ab1d3f

View file

@ -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);