Public Member Functions | |
| __construct ($courseId, $groupId=null) | |
| load ($from= '', $to= '') | |
| render () | |
| flush () | |
| addMsg ($message, $userId) | |
| archive () | |
Private Member Functions | |
| renderSingleMsg ($message) | |
Private Attributes | |
| $msgList = array() | |
| $courseId = null | |
| $groupId = null | |
| $tblChatMsg = '' | |
| $tblUser = '' | |
Definition at line 18 of file chatMsgList.class.php.
| __construct | ( | $ | courseId, | |
| $ | groupId = null | |||
| ) |
Definition at line 28 of file chatMsgList.class.php.
| addMsg | ( | $ | message, | |
| $ | userId | |||
| ) |
Add a message to chat
| string | $message |
Definition at line 184 of file chatMsgList.class.php.
| archive | ( | ) |
Generate a file with all messages and copy it in the document tool
Definition at line 214 of file chatMsgList.class.php.
| flush | ( | ) |
Delete all messages from DB for current course
Definition at line 170 of file chatMsgList.class.php.
| load | ( | $ | from = '', |
|
| $ | to = '' | |||
| ) |
load message list of this course from DB
| int | $from unixtime | |
| int | $to unixtime |
Definition at line 53 of file chatMsgList.class.php.
| render | ( | ) |
Produce html to display the message list
Definition at line 104 of file chatMsgList.class.php.
| renderSingleMsg | ( | $ | message | ) | [private] |
Get html to display one message with clickable links
| array | $message('unixPostTime','message','lastname','firstname','isCourseCreator') |
Definition at line 147 of file chatMsgList.class.php.
$courseId = null [private] |
Definition at line 22 of file chatMsgList.class.php.
$groupId = null [private] |
Definition at line 23 of file chatMsgList.class.php.
$msgList = array() [private] |
Definition at line 20 of file chatMsgList.class.php.
$tblChatMsg = '' [private] |
Definition at line 25 of file chatMsgList.class.php.
$tblUser = '' [private] |
Definition at line 26 of file chatMsgList.class.php.
1.6.3