summaryrefslogtreecommitdiff
path: root/includes/model/Message_model.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/model/Message_model.php')
-rw-r--r--includes/model/Message_model.php13
1 files changed, 7 insertions, 6 deletions
diff --git a/includes/model/Message_model.php b/includes/model/Message_model.php
index 39eada71..57277fbe 100644
--- a/includes/model/Message_model.php
+++ b/includes/model/Message_model.php
@@ -2,6 +2,8 @@
/**
* Returns Message id array
+ *
+ * @return array|false
*/
function Message_ids()
{
@@ -11,8 +13,8 @@ function Message_ids()
/**
* Returns message by id.
*
- * @param $message_id message
- * ID
+ * @param int $message_id message ID
+ * @return array|false|null
*/
function Message($message_id)
{
@@ -31,10 +33,9 @@ function Message($message_id)
* TODO: global $user con not be used in model!
* send message
*
- * @param $receiver_user_id User
- * ID of Reciever
- * @param $text Text
- * of Message
+ * @param int $receiver_user_id User ID of Reciever
+ * @param string $text Text of Message
+ * @return bool
*/
function Message_send($receiver_user_id, $text)
{