mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-20 16:37:48 +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
|
@ -58,6 +58,17 @@ namespace controllers\internals;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 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);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the list of entries for a user
|
* Return the list of entries for a user
|
||||||
* @param int $id_user : User id
|
* @param int $id_user : User id
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue