RemotingMessage.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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 license@zend.com so we can send you a copy immediately.
  14. *
  15. * @category Zend
  16. * @package Zend_Amf
  17. * @subpackage Value
  18. * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
  19. * @license http://framework.zend.com/license/new-bsd New BSD License
  20. */
  21. /** Zend_Amf_Value_Messaging_AbstractMessage */
  22. require_once 'Zend/Amf/Value/Messaging/AbstractMessage.php';
  23. /**
  24. * This type of message contains information needed to perform
  25. * a Remoting invocation.
  26. *
  27. * Corresponds to flex.messaging.messages.RemotingMessage
  28. *
  29. * @package Zend_Amf
  30. * @subpackage Value
  31. * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
  32. * @license http://framework.zend.com/license/new-bsd New BSD License
  33. */
  34. class Zend_Amf_Value_Messaging_RemotingMessage extends Zend_Amf_Value_Messaging_AbstractMessage
  35. {
  36. /**
  37. * The name of the service to be called including package name
  38. * @var String
  39. */
  40. public $source;
  41. /**
  42. * The name of the method to be called
  43. * @var string
  44. */
  45. public $operation;
  46. /**
  47. * The arguments to call the mathod with
  48. * @var array
  49. */
  50. public $parameters;
  51. /**
  52. * Create a new Remoting Message
  53. *
  54. * @return void
  55. */
  56. public function __construct()
  57. {
  58. $this->clientId = $this->generateId();
  59. $this->destination = null;
  60. $this->messageId = $this->generateId();
  61. $this->timestamp = time().'00';
  62. $this->timeToLive = 0;
  63. $this->headers = new stdClass();
  64. $this->body = null;
  65. }
  66. }