mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-22 09:26:27 +02:00
Add a method to find all entries for a user in standard controller
This commit is contained in:
parent
cc50ad2678
commit
78b3ded31d
1 changed files with 11 additions and 0 deletions
|
@ -56,6 +56,17 @@ namespace controllers\internals;
|
|||
{
|
||||
return $this->get_model()->get_for_user($id_user, $id);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Return all entries for a user
|
||||
* @param int $id_user : Entry id
|
||||
* @return array
|
||||
*/
|
||||
public function gets_for_user (int $id_user)
|
||||
{
|
||||
return $this->get_model()->gets_for_user($id_user);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue