Update all controllers to standard behavior

This commit is contained in:
osaajani 2019-11-15 06:30:23 +01:00
parent 18c7cb019d
commit ccfc69baca
25 changed files with 112 additions and 125 deletions

View file

@ -34,6 +34,18 @@ namespace controllers\internals;
{
return $this->get_model()->get($id);
}
/**
* Return a entry by his id and a user
* @param int $id_user : Entry id
* @param int $id : Entry id
* @return array
*/
public function get_for_user (int $id_user, int $id)
{
return $this->get_model()->get_for_user($id_user, $id);
}
/**