Add a method to find all entries for a user in standard controller

This commit is contained in:
osaajani 2020-01-06 23:41:18 +01:00
parent cc50ad2678
commit 78b3ded31d
1 changed files with 11 additions and 0 deletions

View File

@ -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);
}
/**