17 SELECT chat_id, room_id
18 FROM chat_room_messages
19 GROUP BY chat_id, room_id
22 $chat_room_id_comb = array();
26 $chat_room_id_comb[] = array(
$row[
'chat_id'],
$row[
'room_id']);
29 foreach($chat_room_id_comb as $combination)
33 FROM chat_room_messages
37 array(
'integer',
'integer'),
38 array($combination[0], $combination[1])
41 $xml =
new SimpleXMLElement(
'<entries />');
42 $xml->addAttribute(
'chat_id', $combination[0]);
43 $xml->addAttribute(
'room_id', $combination[1]);
47 $child = $xml->addChild(
'entry',
$row[
'message']);
48 $child->addAttribute(
'timestamp',
$row[
'commit_timestamp']);
An exception for terminatinating execution or to throw for unit testing.
Class ilChatroomConverter.