Class ilChatroomConverter.
More...
◆ backupHistoryToXML()
ilChatroomConverter::backupHistoryToXML |
( |
| ) |
|
Definition at line 12 of file class.ilChatroomConverter.php.
References $ilDB, $res, $row, and array.
17 SELECT chat_id, room_id 18 FROM chat_room_messages 19 GROUP BY chat_id, room_id 22 $chat_room_id_comb =
array();
24 while(
$row = $ilDB->fetchAssoc(
$res))
26 $chat_room_id_comb[] =
array(
$row[
'chat_id'],
$row[
'room_id']);
29 foreach($chat_room_id_comb as $combination)
31 $res = $ilDB->queryF(
" 33 FROM chat_room_messages 37 array(
'integer',
'integer'),
38 array($combination[0], $combination[1])
42 $xml->addAttribute(
'chat_id', $combination[0]);
43 $xml->addAttribute(
'room_id', $combination[1]);
45 while(
$row = $ilDB->fetchAssoc(
$res))
47 $child = $xml->addChild(
'entry',
$row[
'message']);
48 $child->addAttribute(
'timestamp',
$row[
'commit_timestamp']);
Create styles array
The data for the language used.
The documentation for this class was generated from the following file: