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