Public Member Functions | |
| __construct ($strategy, $userId=NULL) | |
| next () | |
| valid () | |
| loadMessageList () | |
| getNumberOfMessage () | |
| key () | |
| getMessageStrategy () | |
| setMessageStrategy ($messageFilter) | |
| rewind () | |
| getUserId () | |
| count () | |
Protected Attributes | |
| $messageFilter = NULL | |
| $messageList = FALSE | |
| $numberOfMessage = FALSE | |
| $index | |
| $userId | |
Definition at line 17 of file messagebox.lib.php.
| __construct | ( | $ | strategy, | |
| $ | userId = NULL | |||
| ) |
create an object MessageBox for the user in parameters and with strategy
| MessageStrategy | $strategy strategy to apply | |
| int | $userId user identification of the message box (optionnal, default: current_user_id()) |
Reimplemented in InBox, OutBox, and TrashBox.
Definition at line 32 of file messagebox.lib.php.
| count | ( | ) |
return the number of message of the iterator
Definition at line 142 of file messagebox.lib.php.
| getMessageStrategy | ( | ) |
return the message strategy
Definition at line 103 of file messagebox.lib.php.
| getNumberOfMessage | ( | ) | [abstract] |
return the number of message in the messageBox
Reimplemented in OutBox, and ReceivedMessageBox.
| getUserId | ( | ) |
return the user identification of the current message box
Definition at line 132 of file messagebox.lib.php.
| key | ( | ) |
Definition at line 93 of file messagebox.lib.php.
| loadMessageList | ( | ) | [abstract] |
Load the list of message
Reimplemented in OutBox, and ReceivedMessageBox.
| next | ( | ) |
add 1 to the index for the iterator
Definition at line 48 of file messagebox.lib.php.
| rewind | ( | ) |
return the iterator to begin
Definition at line 122 of file messagebox.lib.php.
| setMessageStrategy | ( | $ | messageFilter | ) |
set the message filter
| MessageFilter | $messageFilter filter |
Definition at line 113 of file messagebox.lib.php.
| valid | ( | ) |
check if the message in index $index exist
Definition at line 61 of file messagebox.lib.php.
$index [protected] |
Definition at line 22 of file messagebox.lib.php.
$messageFilter = NULL [protected] |
Definition at line 19 of file messagebox.lib.php.
$messageList = FALSE [protected] |
Definition at line 20 of file messagebox.lib.php.
$numberOfMessage = FALSE [protected] |
Definition at line 21 of file messagebox.lib.php.
$userId [protected] |
Definition at line 23 of file messagebox.lib.php.
1.6.3