Class ilChatroomConverter.
More...
◆ backupHistoryToXML()
ilChatroomConverter::backupHistoryToXML |
( |
| ) |
|
Definition at line 12 of file class.ilChatroomConverter.php.
References $DIC, $res, $row, $xml, and array.
16 $res = $DIC->database()->query(
" 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 = $DIC->database()->fetchAssoc(
$res)) {
25 $chat_room_id_comb[] =
array(
$row[
'chat_id'],
$row[
'room_id']);
28 foreach ($chat_room_id_comb as $combination) {
29 $res = $DIC->database()->queryF(
32 FROM chat_room_messages 35 array(
'integer',
'integer'),
36 array($combination[0], $combination[1])
40 $xml->addAttribute(
'chat_id', $combination[0]);
41 $xml->addAttribute(
'room_id', $combination[1]);
43 while (
$row = $DIC->database()->fetchAssoc(
$res)) {
44 $child =
$xml->addChild(
'entry',
$row[
'message']);
45 $child->addAttribute(
'timestamp',
$row[
'commit_timestamp']);
foreach($_POST as $key=> $value) $res
Create styles array
The data for the language used.
The documentation for this class was generated from the following file: