12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- <?php
- /**
- * This file is part of amfPHP
- *
- * LICENSE
- *
- * This source file is subject to the license that is bundled
- * with this package in the file license.txt.
- */
- /**
- * constants relative to the Amf format
- *
- * @package Amfphp_Core_Amf
- * @author Ariel Sommeria-klein
- */
- class Amfphp_Core_Amf_Constants {
- /**
- * The success method name
- */
- const CLIENT_SUCCESS_METHOD = '/onResult';
- /**
- * The status method name
- */
- const CLIENT_FAILURE_METHOD = '/onStatus';
- /**
- * used when there is an error and the request response uri is not available
- */
- const DEFAULT_REQUEST_RESPONSE_URI = '/1';
- /**
- * The AMf content type, for use in the headers
- */
- const CONTENT_TYPE = 'application/x-amf';
- /**
- * this is the field where the class name of an object must be set so that it can be sent as a strongly typed object.
- *
- * try to use this where possible, but it can't be everywhere because we would need to use ReflectionClass::hasProperty, and that is only with PHP 5.1
- */
- const FIELD_EXPLICIT_TYPE = '_explicitType';
- /**
- * if an object is marked as externalizable(AMF3 and later), this is where the externalized data goes.
- */
- const FIELD_EXTERNALIZED_DATA = '_externalizedData';
- /**
- * this is the name of the credentials header. can be used for AS3, but is mostly AS2 only
- */
- const CREDENTIALS_HEADER_NAME = 'Credentials';
- /**
- * the user id field in the credentials header
- */
- const CREDENTIALS_FIELD_USERID = 'userid';
- /**
- * the password field in the credentials header
- */
- const CREDENTIALS_FIELD_PASSWORD = 'password';
- /**
- * amf0 encoding
- */
- const AMF0_ENCODING = 0;
- /**
- * amf3 encoding
- */
- const AMF3_ENCODING = 3;
- }
- ?>
|