Delicious Bookmark this on Delicious Share on Facebook SlashdotSlashdot It! Digg! Digg



PHP : Function Reference : SAM - Simple Asynchronous Messaging : SAMMessage->__construct()

SAMMessage->__construct()

Creates a new Message object ()

SAMMessage {
  __construct(mixed body);
}

Creates a new SAMMessage object optionally specifying a message body.

Parameters

body

The optional body for the message.

Examples

Example 2135. Creating a message

<?php

$msg
= new SAMMessage();

?>


Example 2136. Creating a message with a simple text payload

<?php

$msg
= new SAMMessage('This is a simple text message');

?>


Change Language


Follow Navioo On Twitter
SAMConnection->commit()
SAMConnection->connect()
SAMConnection->__construct()
SAMConnection->disconnect()
SAMConnection->errno
SAMConnection->error
SAMConnection->isConnected()
SAMConnection->peek()
SAMConnection->peekAll()
SAMConnection->receive()
SAMConnection->remove()
SAMConnection->rollback()
SAMConnection->send()
SAMConnection::setDebug()
SAMConnection->subscribe()
SAMConnection->unsubscribe()
SAMMessage->body
SAMMessage->__construct()
SAMMessage->header
eXTReMe Tracker