Constants.php 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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. * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
  18. * @license http://framework.zend.com/license/new-bsd New BSD License
  19. * @version $Id: Constants.php 2504 2011-12-28 07:35:29Z liu21st $
  20. */
  21. /**
  22. * The following constants are used throughout serialization and
  23. * deserialization to detect the AMF marker and encoding types.
  24. *
  25. * @package Zend_Amf
  26. * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
  27. * @license http://framework.zend.com/license/new-bsd New BSD License
  28. */
  29. final class Zend_Amf_Constants
  30. {
  31. const AMF0_NUMBER = 0x00;
  32. const AMF0_BOOLEAN = 0x01;
  33. const AMF0_STRING = 0x02;
  34. const AMF0_OBJECT = 0x03;
  35. const AMF0_MOVIECLIP = 0x04;
  36. const AMF0_NULL = 0x05;
  37. const AMF0_UNDEFINED = 0x06;
  38. const AMF0_REFERENCE = 0x07;
  39. const AMF0_MIXEDARRAY = 0x08;
  40. const AMF0_OBJECTTERM = 0x09;
  41. const AMF0_ARRAY = 0x0a;
  42. const AMF0_DATE = 0x0b;
  43. const AMF0_LONGSTRING = 0x0c;
  44. const AMF0_UNSUPPORTED = 0x0e;
  45. const AMF0_XML = 0x0f;
  46. const AMF0_TYPEDOBJECT = 0x10;
  47. const AMF0_AMF3 = 0x11;
  48. const AMF0_OBJECT_ENCODING = 0x00;
  49. const AMF3_UNDEFINED = 0x00;
  50. const AMF3_NULL = 0x01;
  51. const AMF3_BOOLEAN_FALSE = 0x02;
  52. const AMF3_BOOLEAN_TRUE = 0x03;
  53. const AMF3_INTEGER = 0x04;
  54. const AMF3_NUMBER = 0x05;
  55. const AMF3_STRING = 0x06;
  56. const AMF3_XML = 0x07;
  57. const AMF3_DATE = 0x08;
  58. const AMF3_ARRAY = 0x09;
  59. const AMF3_OBJECT = 0x0A;
  60. const AMF3_XMLSTRING = 0x0B;
  61. const AMF3_BYTEARRAY = 0x0C;
  62. const AMF3_OBJECT_ENCODING = 0x03;
  63. // Object encodings for AMF3 object types
  64. const ET_PROPLIST = 0x00;
  65. const ET_EXTERNAL = 0x01;
  66. const ET_DYNAMIC = 0x02;
  67. const ET_PROXY = 0x03;
  68. const FMS_OBJECT_ENCODING = 0x01;
  69. /**
  70. * Special content length value that indicates "unknown" content length
  71. * per AMF Specification
  72. */
  73. const UNKNOWN_CONTENT_LENGTH = -1;
  74. const URL_APPEND_HEADER = 'AppendToGatewayUrl';
  75. const RESULT_METHOD = '/onResult';
  76. const STATUS_METHOD = '/onStatus';
  77. const CREDENTIALS_HEADER = 'Credentials';
  78. const PERSISTENT_HEADER = 'RequestPersistentHeader';
  79. const DESCRIBE_HEADER = 'DescribeService';
  80. const GUEST_ROLE = 'anonymous';
  81. }