diff options
author | Evan Prodromou <evan@status.net> | 2009-11-17 06:25:07 -0500 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2009-11-17 06:25:07 -0500 |
commit | 6a1afda259c5223449f679a64f932e36df5ebe39 (patch) | |
tree | 7d754e8a1b7734c6750ca84b28ba0e93213e0a86 /extlib/Stomp/Message/Map.php | |
parent | d59af0296070cd868855564a0280e4be2c16410d (diff) | |
parent | 75c00f0054c08c7b49515c849260afbb6913f525 (diff) |
Merge branch '0.9.x' of git@gitorious.org:statusnet/mainline into 0.9.x
Conflicts:
classes/statusnet.ini
Diffstat (limited to 'extlib/Stomp/Message/Map.php')
-rw-r--r-- | extlib/Stomp/Message/Map.php | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/extlib/Stomp/Message/Map.php b/extlib/Stomp/Message/Map.php index 288456a84..38a32c56c 100644 --- a/extlib/Stomp/Message/Map.php +++ b/extlib/Stomp/Message/Map.php @@ -24,30 +24,28 @@ require_once 'Stomp/Message.php'; * Message that contains a set of name-value pairs * * @package Stomp - * @author Dejan Bosanac <dejan@nighttale.net> - * @version $Revision: 23 $ */ -class Stomp_Message_Map extends Stomp_Message +class StompMessageMap extends StompMessage { public $map; /** * Constructor * - * @param Stomp_Frame|string $msg + * @param StompFrame|string $msg * @param array $headers */ function __construct ($msg, $headers = null) { - if ($msg instanceof Stomp_Frame) { + if ($msg instanceof StompFrame) { $this->_init($msg->command, $msg->headers, $msg->body); - $this->map = json_decode($msg->body); + $this->map = json_decode($msg->body, true); } else { $this->_init("SEND", $headers, $msg); if ($this->headers == null) { $this->headers = array(); } - $this->headers['amq-msg-type'] = 'MapMessage'; + $this->headers['transformation'] = 'jms-map-json'; $this->body = json_encode($msg); } } |