mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-20 16:37:48 +02:00
to keep
This commit is contained in:
parent
65dacb5302
commit
4c27d8ccf2
13 changed files with 121 additions and 137 deletions
|
@ -65,16 +65,16 @@ namespace controllers\internals;
|
|||
|
||||
/**
|
||||
* Cette fonction insert un nouvel event.
|
||||
*
|
||||
* @param array $event : Un tableau représentant l'event à insérer
|
||||
* @param int $id_user : user id
|
||||
* @param mixed $type
|
||||
* @param mixed $text
|
||||
*
|
||||
* @return mixed bool|int : false si echec, sinon l'id du nouvel event inséré
|
||||
*/
|
||||
public function create($type, $text)
|
||||
public function create($id_user, $type, $text)
|
||||
{
|
||||
$event = [
|
||||
'id_user' => $id_user,
|
||||
'type' => $type,
|
||||
'text' => $text,
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue