-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
818 changed files
with
66,558 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
|
||
|
||
} | ||
?> |
Oops, something went wrong.