RemotingMessage.php 2.1 KB

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