Add a method to find all entries for a user in standard controller
This commit is contained in:
parent
cc50ad2678
commit
78b3ded31d
|
@ -56,6 +56,17 @@ namespace controllers\internals;
|
||||||
{
|
{
|
||||||
return $this->get_model()->get_for_user($id_user, $id);
|
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…
Reference in New Issue