File indexing completed on 2025-01-26 05:29:16
0001 <?php 0002 /** 0003 * Zend Framework 0004 * 0005 * LICENSE 0006 * 0007 * This source file is subject to the new BSD license that is bundled 0008 * with this package in the file LICENSE.txt. 0009 * It is also available through the world-wide-web at this URL: 0010 * http://framework.zend.com/license/new-bsd 0011 * If you did not receive a copy of the license and are unable to 0012 * obtain it through the world-wide-web, please send an email 0013 * to license@zend.com so we can send you a copy immediately. 0014 * 0015 * @category Zend 0016 * @package Zend_Amf 0017 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) 0018 * @license http://framework.zend.com/license/new-bsd New BSD License 0019 * @version $Id$ 0020 */ 0021 0022 /** 0023 * The following constants are used throughout serialization and 0024 * deserialization to detect the AMF marker and encoding types. 0025 * 0026 * @package Zend_Amf 0027 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) 0028 * @license http://framework.zend.com/license/new-bsd New BSD License 0029 */ 0030 final class Zend_Amf_Constants 0031 { 0032 const AMF0_NUMBER = 0x00; 0033 const AMF0_BOOLEAN = 0x01; 0034 const AMF0_STRING = 0x02; 0035 const AMF0_OBJECT = 0x03; 0036 const AMF0_MOVIECLIP = 0x04; 0037 const AMF0_NULL = 0x05; 0038 const AMF0_UNDEFINED = 0x06; 0039 const AMF0_REFERENCE = 0x07; 0040 const AMF0_MIXEDARRAY = 0x08; 0041 const AMF0_OBJECTTERM = 0x09; 0042 const AMF0_ARRAY = 0x0a; 0043 const AMF0_DATE = 0x0b; 0044 const AMF0_LONGSTRING = 0x0c; 0045 const AMF0_UNSUPPORTED = 0x0e; 0046 const AMF0_XML = 0x0f; 0047 const AMF0_TYPEDOBJECT = 0x10; 0048 const AMF0_AMF3 = 0x11; 0049 const AMF0_OBJECT_ENCODING = 0x00; 0050 0051 const AMF3_UNDEFINED = 0x00; 0052 const AMF3_NULL = 0x01; 0053 const AMF3_BOOLEAN_FALSE = 0x02; 0054 const AMF3_BOOLEAN_TRUE = 0x03; 0055 const AMF3_INTEGER = 0x04; 0056 const AMF3_NUMBER = 0x05; 0057 const AMF3_STRING = 0x06; 0058 const AMF3_XML = 0x07; 0059 const AMF3_DATE = 0x08; 0060 const AMF3_ARRAY = 0x09; 0061 const AMF3_OBJECT = 0x0A; 0062 const AMF3_XMLSTRING = 0x0B; 0063 const AMF3_BYTEARRAY = 0x0C; 0064 const AMF3_OBJECT_ENCODING = 0x03; 0065 0066 // Object encodings for AMF3 object types 0067 const ET_PROPLIST = 0x00; 0068 const ET_EXTERNAL = 0x01; 0069 const ET_DYNAMIC = 0x02; 0070 const ET_PROXY = 0x03; 0071 0072 const FMS_OBJECT_ENCODING = 0x01; 0073 0074 /** 0075 * Special content length value that indicates "unknown" content length 0076 * per AMF Specification 0077 */ 0078 const UNKNOWN_CONTENT_LENGTH = -1; 0079 const URL_APPEND_HEADER = 'AppendToGatewayUrl'; 0080 const RESULT_METHOD = '/onResult'; 0081 const STATUS_METHOD = '/onStatus'; 0082 const CREDENTIALS_HEADER = 'Credentials'; 0083 const PERSISTENT_HEADER = 'RequestPersistentHeader'; 0084 const DESCRIBE_HEADER = 'DescribeService'; 0085 0086 const GUEST_ROLE = 'anonymous'; 0087 }