mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-21 08:56:27 +02:00
Update all models to use StandardModel basis
This commit is contained in:
parent
0e22f3d02c
commit
155a048834
17 changed files with 580 additions and 1478 deletions
|
@ -21,7 +21,7 @@ namespace models;
|
|||
* Return table name
|
||||
* @return string
|
||||
*/
|
||||
protected function get_table_name() : string;
|
||||
abstract protected function get_table_name() : string;
|
||||
|
||||
|
||||
/**
|
||||
|
@ -108,6 +108,7 @@ namespace models;
|
|||
return $this->_update($this->get_table_name(), $entry, ['id_user' => $id_user, 'id' => $id]);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Count number of entry for a user
|
||||
* @param int $id_user : User id
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue