Skip to content

Commit

Permalink
initial release
Browse files Browse the repository at this point in the history
  • Loading branch information
muertet committed Nov 2, 2014
1 parent b9f2ebf commit b5a79e0
Show file tree
Hide file tree
Showing 818 changed files with 66,558 additions and 3 deletions.
74 changes: 74 additions & 0 deletions Core/Amf/Constants.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
<?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.
* @package Amfphp_Core_Amf
*/

/**
* 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;


}
?>
Loading

0 comments on commit b5a79e0

Please sign in to comment.