Ready to implement sendMessage method

This commit is contained in:
Pierre
2017-06-23 19:00:40 +02:00
parent be91602277
commit 03392f65a9
4 changed files with 98 additions and 3 deletions

View File

@ -411,6 +411,23 @@ class conversations {
return $conversationsID;
}
/**
* Send a new message
*
* @param Integer $userID The ID of the user sending the message
* @param Integer $conversationID The ID of the target conversation
* @param String $message The message
* @return Boolean True for a success
*/
public function sendMessage($userID, $conversationID, $message){
//GUIDE LINE : this method act like a "controller" : it doesn't perform any database operation
//But it manage all operations (insert message; save image; inform other users; ...)
//Success
return true;
}
}
//Register component