[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/lib/zend/Zend/Amf/Value/Messaging/ -> AcknowledgeMessage.php (source)

   1  <?php
   2  /**
   3   * Zend Framework
   4   *
   5   * LICENSE
   6   *
   7   * This source file is subject to the new BSD license that is bundled
   8   * with this package in the file LICENSE.txt.
   9   * It is also available through the world-wide-web at this URL:
  10   * http://framework.zend.com/license/new-bsd
  11   * If you did not receive a copy of the license and are unable to
  12   * obtain it through the world-wide-web, please send an email
  13   * to [email protected] so we can send you a copy immediately.
  14   *
  15   * @category   Zend
  16   * @package    Zend_Amf
  17   * @subpackage Value
  18   * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
  19   * @license    http://framework.zend.com/license/new-bsd     New BSD License
  20   * @version    $Id$
  21   */
  22  
  23  /** Zend_Amf_Value_Messaging_AsyncMessage */
  24  require_once 'Zend/Amf/Value/Messaging/AsyncMessage.php';
  25  
  26  /**
  27   * This is the type of message returned by the MessageBroker
  28   * to endpoints after the broker has routed an endpoint's message
  29   * to a service.
  30   *
  31   * flex.messaging.messages.AcknowledgeMessage
  32   *
  33   * @package    Zend_Amf
  34   * @subpackage Value
  35   * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
  36   * @license    http://framework.zend.com/license/new-bsd     New BSD License
  37   */
  38  class Zend_Amf_Value_Messaging_AcknowledgeMessage extends Zend_Amf_Value_Messaging_AsyncMessage
  39  {
  40      /**
  41       * Create a new Acknowledge Message
  42       *
  43       * @param unknown_type $message
  44       */
  45      public function __construct($message)
  46      {
  47          $this->clientId    = $this->generateId();
  48          $this->destination = null;
  49          $this->messageId   = $this->generateId();
  50          $this->timestamp   = time().'00';
  51          $this->timeToLive  = 0;
  52          $this->headers     = new STDClass();
  53          $this->body        = null;
  54  
  55          // correleate the two messages
  56          if ($message && isset($message->messageId)) {
  57              $this->correlationId = $message->messageId;
  58          }
  59      }
  60  }


Generated: Fri Nov 28 20:29:05 2014 Cross-referenced by PHPXref 0.7.1