Update all models to use StandardModel basis

This commit is contained in:
osaajani 2019-11-13 03:24:22 +01:00
parent 0e22f3d02c
commit 155a048834
17 changed files with 580 additions and 1478 deletions

View file

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