Constants.php 3.1 KB

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