ok to display entries and equipments in templates

This commit is contained in:
JBthePenguin 2021-06-05 13:52:32 +02:00
parent c74ba5ed85
commit c3eb06ce0d
6 changed files with 50 additions and 2 deletions

View file

@ -27,4 +27,9 @@ class Entry // entrées définitives
{
DB::getInstance()->insert('plugin_materiels_entry', $data);
}
public function listAll()
{
return DB::getInstance()->get('SELECT * FROM plugin_materiels_entry ORDER BY date_of_entry DESC;');
}
}