Public Member Functions | |
| __construct ($messageId, $userId=NULL) | |
| getRecipient () | |
| isRead () | |
| isDeleted () | |
| moveToTrashBox () | |
| moveToInBox () | |
| markUnread () | |
| markRead () | |
| load () | |
Static Public Member Functions | |
| static | fromArray ($messageData) |
| static | fromId ($messageId, $userId=NULL) |
Protected Member Functions | |
| changeReadStatus ($isRead) | |
| setFromArray ($messageData) | |
Protected Attributes | |
| $isRead | |
| $isDeleted | |
| $userId | |
Private Member Functions | |
| moveMessage ($deledeStatus) | |
Definition at line 21 of file receivedmessage.lib.php.
| __construct | ( | $ | messageId, | |
| $ | userId = NULL | |||
| ) |
create a received message
| int | $messageId message identification | |
| int | $userId user identification |
Definition at line 33 of file receivedmessage.lib.php.
| changeReadStatus | ( | $ | isRead | ) | [protected] |
change the read status of the current message
| int | $isRead value of the readStatus |
Definition at line 153 of file receivedmessage.lib.php.
| static fromArray | ( | $ | messageData | ) | [static] |
create a new ReceviedMessage with the information in the parameter
| array | $messageData $messageData['message_id'] $messageData['subject'] $messageData['message'] $messageData['sender'] $messageData['send_time'] $messageData['course'] $messageData['group'] $messageData['tools'] $messageData['is_read'] $messageData['is_deleted'] $messageData['user_id'] $messageData['firstName'] $messageData['lastName'] |
Definition at line 252 of file receivedmessage.lib.php.
| static fromId | ( | $ | messageId, | |
| $ | userId = NULL | |||
| ) | [static] |
create a new message
| int | $messageId message identification | |
| int | $userId user identification if it not defined it use the current user identification |
Definition at line 269 of file receivedmessage.lib.php.
| getRecipient | ( | ) |
return the user recepient
Definition at line 51 of file receivedmessage.lib.php.
| isDeleted | ( | ) |
Definition at line 78 of file receivedmessage.lib.php.
| isRead | ( | ) |
Definition at line 60 of file receivedmessage.lib.php.
| load | ( | ) |
load the current message from the data base
Definition at line 325 of file receivedmessage.lib.php.
| markRead | ( | ) |
mark the current message as read
Definition at line 138 of file receivedmessage.lib.php.
| markUnread | ( | ) |
mark the current message as unread
Definition at line 129 of file receivedmessage.lib.php.
| moveMessage | ( | $ | deledeStatus | ) | [private] |
change the deleted_flag in the database and the field in the current message
| int | $deledeStatus value of the deleted_flag in the database |
Definition at line 111 of file receivedmessage.lib.php.
| moveToInBox | ( | ) |
restore the current message
Definition at line 101 of file receivedmessage.lib.php.
| moveToTrashBox | ( | ) |
delete the current message
Definition at line 93 of file receivedmessage.lib.php.
| setFromArray | ( | $ | messageData | ) | [protected] |
set fields of the current message
| array | $messageData $messageData['message_id'] $messageData['subject'] $messageData['message'] $messageData['sender'] $messageData['send_time'] $messageData['course'] $messageData['group'] $messageData['tools'] $messageData['is_read'] $messageData['is_deleted'] $messageData['user_id'] $messageData['firstName'] $messageData['lastName'] |
Reimplemented from StoredMessage.
Definition at line 184 of file receivedmessage.lib.php.
$isDeleted [protected] |
Definition at line 24 of file receivedmessage.lib.php.
$isRead [protected] |
Definition at line 23 of file receivedmessage.lib.php.
$userId [protected] |
Definition at line 25 of file receivedmessage.lib.php.
1.6.3