-
$absolutePath
-
the absolute path to the file containing the class definition
-
$amf0storedObjects
-
-
$amfVersion
-
either 0 or 3. This is stored here when deserializing, because the serializer needs the info
-
addFilter
-
register an object method for the given filter
-
addRole
-
-
adminMethod
-
method that is protected by authentication. Only "admin" role is authorized. (see getMethodRoles)
-
Amf3DeserializationTest
-
Unit tests for Amfphp_Core_Amf_Serializer, but using amf3 note: phpunit dataProvider mechanism doesn't work well, so lots of boiler plate code here. Oh well... A.S.
-
Amf3SerializationTest
-
Unit tests for Amfphp_Core_Amf_Serializer, but using amf3 note: phpunit dataProvider mechanism doesn't work well, so lots of boiler plate code here. Oh well... A.S.
-
Amf3TestData
-
See AmfTestData for details, this is the extension for Amf3
-
AmfDeserializerWrapper
-
This class exports some internal (public) methods. This way, those methods can be tested separately.
-
AmfphpAuthentication.php
-
-
AmfphpCharsetConverter.php
-
-
AmfphpCustomClassConverter.php
-
-
AcknowledgeMessage.php
-
-
AmfphpFlexMessaging.php
-
-
AmfphpJson.php
-
-
AmfphpLogger.php
-
-
AmfphpQuickServiceDebug.php
-
-
AmfphpQuickServiceDebugException.php
-
-
AmfphpAuthentication
-
Authentication for Amfphp.
-
AmfphpAuthenticationTest
-
Test class for AmfphpAuthentication.
-
AmfphpCharsetConverter
-
Converts strings to the right encoding in incoming and outgoing packets This works for nested objects.
-
AmfphpCharsetConverterTest
-
Test class for CharsetConverter.
-
AmfphpCustomClassConverter
-
Converts data from incoming packets with explicit types to custom classes.
-
AmfphpCustomClassConverterTest
-
Test class for CustomClassConverter.
-
AmfphpFlexMessaging
-
Support for flex messaging.
-
AmfphpFlexMessagingTest
-
Test class for FlexMessaging.
-
AmfphpFlexMessaging_AcknowledgeMessage
-
Used to generate a Flex Acknowledge message.
-
AmfphpFlexMessaging_ErrorMessage
-
Used to generate a Flex Error message.
-
AmfphpJson
-
plugin allowing service calls coming from JavaScript encoded as JSON strings and returned as JSON strings using POST parameters.
-
AmfphpLogger
-
logs requests and responses in their serialized and deserialized forms. Note that this a crude logging system, with no levels, targets etc. like Log4j for example.
-
AmfphpLoggerTest
-
Test class for AmfphpLogger.
-
AmfphpQuickServiceDebug
-
A simple service browser with html only. Sometimes you don't need the full thing with AMF etc., so use this This plugin should not be deployed on a production server.
-
AmfphpQuickServiceDebugException
-
an exception thrown by AmfphpQuickServiceDebug. The message must be a ready to print html fragment
-
Amfphp_Core_Amf_Constants
-
constants relative to the Amf format
-
Amfphp_Core_Amf_Deserializer
-
Amfphp_Core_Amf_Deserializer takes the raw amf input stream and converts it PHP objects representing the data.
-
Amfphp_Core_Amf_Handler
-
This is the default handler for the gateway. It's job is to handle everything that is specific to Amf for the gateway.
-
Amfphp_Core_Amf_Header
-
Amfphp_Core_Amf_Header is a data type that represents a single header passed via Amf
-
Amfphp_Core_Amf_Message
-
Amfphp_Core_Amf_Message is a data type that encapsulates all of the various properties a Message object can have.
-
Amfphp_Core_Amf_Packet
-
content holder for an Amf Packet.
-
Amfphp_Core_Amf_Serializer
-
AmfSerializer manages the job of translating PHP objects into the actionscript equivalent via Amf. The main method of the serializer is the serialize method which takes and AmfObject as it's argument and builds the resulting Amf Message.
-
Amfphp_Core_Amf_Types_ByteArray
-
-
Amfphp_Core_Amf_Types_ByteArray
-
Amf byte arrays will be converted to and from this class
-
Amfphp_Core_Amf_Types_Undefined
-
Amf Undefined will be converted to and from this class
-
Amfphp_Core_Amf_Util
-
utils for Amf handling
-
Amfphp_Core_Amf_UtilTest
-
Test class for Amfphp_Core_Amf_Util.
-
Amfphp_Core_Common_ClassFindInfo
-
The information necessary for a service router to be able to load a class' file and instanciate it could be extended later with namespaces when they become mainstream
-
Amfphp_Core_Common_IDeserializedRequestHandler
-
interface for a class that can handle a deserialized request
-
Amfphp_Core_Common_IDeserializer
-
interface for deserializers.
-
Amfphp_Core_Common_IExceptionHandler
-
An exception handler is passed an exception and must translate that into something that is serializable. In the case of Amf, it must return an Amfphp_Core_Amf_Packet object containing the relevant information
-
Amfphp_Core_Common_ISerializer
-
interface for serializers.
-
Amfphp_Core_Common_ServiceCallParameters
-
place holder class for the variables necessary to make a service call
-
Amfphp_Core_Common_ServiceRouter
-
The Service Router class is responsible for executing the remote service method and returning it's value.
-
Amfphp_Core_Common_ServiceRouterTest
-
Test class for Amfphp_Core_Common_ServiceRouter.
-
Amfphp_Core_Config
-
responsable for loading and maintaining Amfphp configuration
-
Amfphp_Core_Exception
-
just a type to distinguish between Amfphp exceptions and any other exceptions
-
Amfphp_Core_FilterManager
-
This class is a kind of event dispatcher
-
Amfphp_Core_FilterManagerTest
-
Test class for Amfphp_Core_FilterManager.
-
Amfphp_Core_Gateway
-
where everything comes together in amfphp.
-
Amfphp_Core_GatewayTest
-
Test class for Amfphp_Core_Gateway.
-
Amfphp_Core_HttpRequestGatewayFactory
-
A gateway factory's job is to create a gateway. There can be many gateway factories, but as such the only one for now is this one, which creates a gateway assuming that the data to be processed is in an http request and thus available through the usual php globals
-
Amfphp_Core_PluginManager
-
Loads plugins for Amfphp. Plugins consist of a folder in the plugins folder. The folder and the class should all have the same name. The file containing the class should be named with the class name with the ".php" suffix added.
-
Amfphp_Core_PluginManagerTest
-
Test class for Amfphp_Core_PluginManager.
-
Amfphp_ROOTPATH
-
include this to include amfphp note: this list could be generated. In the meantime maintain it manually.
-
AmfSerializerWrapper
-
This class exports some internal (public) methods. This way, those methods can be tested separately.
-
AmfTestData
-
test data for the Amfphp unit tests data types have the s prefix for "serialized" and "d" prefix for "deserialized" for Packets there is a flaw in the Amfphp design which means that serializng and deserializing is not symmetrical.
-
applyFunctionToContainedObjects
-
applies a function to all objects contained by $obj and $obj itself.
-
AuthenticationService
-
a simple authentication service, used for testing the AmfphpAuthentication plugin
-
Amf3DeserializationTest.php
-
-
Amf3SerializationTest.php
-
-
AmfDeserializerWrapper.php
-
-
AmfSerializerWrapper.php
-
-
AmfUtilTest.php
-
-
AmfphpAuthenticationTest.php
-
-
AmfphpCharsetConverterTest.php
-
-
AmfphpCustomClassConverterTest.php
-
-
AmfphpFlexMessagingTest.php
-
-
AmfphpLoggerTest.php
-
-
Amf3TestData.php
-
-
AmfTestData.php
-
-
AuthenticationService.php
-
-
$body
-
-
ByteArray.php
-
-
build2HeadersAndTwoMessagesPacket
-
an Amfphp_Core_Amf_Packet with two headers one with a string and one with a null , and two Messages, one with a string and one with a null
-
buildArray
-
-
buildBasics
-
simple...
-
buildBoolean
-
-
buildByte
-
byte
-
buildByteArray
-
-
buildDate
-
-
buildDate
-
-
buildDouble
-
double: 8 bytes. Careful of little/big endian so that test runs with both systems
-
buildDouble
-
double: 0x05 as type marker, then 8 bytes. Careful of little/big endian so that test runs with both systems
-
buildEcmaArray
-
the writeArray method looks at the keys. If there are both numeric and string keys, the data is treated as an Ecma Array
-
buildEmptyPacket
-
test serializing an empty Amfphp_Core_Amf_Packet.
-
buildInt
-
int: 2 bytes
-
buildInt
-
-
buildLong
-
long: 4 bytes
-
buildLongString
-
-
buildLongUtf
-
long utf: the length of the data on 4 bytes and then the char data. The char data is more than 65xxx long
-
buildNull
-
-
buildNullHeaderPacket
-
one header containing a null, and with required set to true
-
buildNullMessagePacket
-
no headers and a Message containing a null
-
buildNumber
-
number: type is0, then value in (double)8 bytes. See buildDouble for little/big endian
-
buildObject
-
-
buildObject
-
-
buildObjectEnd
-
-
buildReference
-
TODO test with a real reference?
-
buildSimpleMirrorServiceRequestAndResponse
-
-
buildStrictArray
-
-
buildString
-
note: no type markers here, because the method doesn't do it. So only the raw data.
-
buildString
-
-
buildStringHeaderPacket
-
with one header containing a string
-
buildStringMessagePacket
-
no headers and a Message containing a string
-
buildTypedObject
-
note: the writeXml method gets rids of CRs and LFs
-
buildUndefined
-
-
buildUnsupported
-
TODO: no writeUnsupported method, and no PHP for unsupported. Write it A.S.
-
buildUtf
-
utf: the length of the data on 2 bytes and then the char data
-
buildXml
-
note: the writeXml method gets rids of CRs and LFs
-
buildXml
-
-
bootstrap.php
-
-
$className
-
the name of the class.
-
$clientCharset
-
the Charset that is used by the client. default utf-8 See all the possible codepages for iconv here: http://www.gnu.org/software/libiconv/
-
$clientId
-
-
$correlationId
-
-
$correlationId
-
-
$currentByte
-
The current seek cursor of the stream
-
$customClassFolderPaths
-
paths to folders containing custom classes(relative or absolute)
-
ClassLoader.php
-
-
Constants.php
-
-
ClassFindInfo.php
-
-
Config.php
-
-
callFilters
-
call the functions registered for the given filter. There can be as many parameters as necessary, but only the first one can be changed and and returned by the callees.
-
clearSessionInfo
-
clears the session info set by the plugin. Use to logout
-
CLIENT_FAILURE_METHOD
-
The status method name
-
CLIENT_SUCCESS_METHOD
-
The success method name
-
CONTENT_TYPE
-
if content type is not set or content is set to "application/x-www-form-urlencoded", this plugin will handle the request
-
CONTENT_TYPE
-
The AMf content type, for use in the headers
-
convertStringFromClientToPhpCharsets
-
converts the strings note: This is not a recursive function. Rather the recursion is handled by Amfphp_Core_Amf_Util::applyFunctionToContainedObjects.
-
convertStringFromPhpToClientCharsets
-
note: This is not a recursive function. Rather the recusrion is handled by Amfphp_Core_Amf_Util::applyFunctionToContainedObjects.
-
convertToTyped
-
if the object contains an explicit type marker, this method attempts to convert it to its typed counterpart if the typed class is already available, then simply creates a new instance of it. If not, attempts to load the file from the available service folders.
-
createGateway
-
create the gateway
-
CREDENTIALS_FIELD_PASSWORD
-
the password field in the credentials header
-
CREDENTIALS_FIELD_USERID
-
the user id field in the credentials header
-
CREDENTIALS_HEADER_NAME
-
this is the name of the credentials header. can be used for AS3, but is mostly AS2 only
-
$faultCode
-
-
$faultDetail
-
-
$faultString
-
-
FilterManager.php
-
-
FIELD_EXPLICIT_TYPE
-
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
-
FIELD_MESSAGE_ID
-
-
filterAmfExceptionHandler
-
-
filterAmfRequestHeaderHandler
-
-
filterAmfRequestMessageHandler
-
-
filterDeserializedRequest
-
converts untyped objects to their typed counterparts. Loads the class if necessary
-
filterDeserializedRequest
-
logs the deserialized request
-
filterDeserializedRequest
-
converts untyped objects to their typed counterparts. Loads the class if necessary
-
filterDeserializedResponse
-
looks at the outgoing packet and sets the explicit type field so that the serializer sends it properly
-
filterDeserializedResponse
-
logs the deserialized response
-
filterDeserializedResponse
-
looks at the response and sets the explicit type field so that the serializer sends it properly
-
filterHandler
-
if no content type, then returns this.
-
filterHandler
-
If the content type contains the "json" string, returns this plugin
-
filterSerializedRequest
-
logs the serialized incoming packet
-
filterSerializedResponse
-
logs the deserialized incoming packet
-
filterServiceObject
-
called when the service object is created, just before the method call.
-
FILTER_AMF_EXCEPTION_HANDLER
-
filter called for exception handling an Amf packet/message, to give a plugin the chance to handle it.
-
FILTER_AMF_REQUEST_HEADER_HANDLER
-
filter called for each amf request header, to give a plugin the chance to handle it.
-
FILTER_AMF_REQUEST_MESSAGE_HANDLER
-
filter called for each amf request message, to give a plugin the chance to handle it.
-
FILTER_DESERIALIZED_REQUEST
-
filter called after the request is deserialized. The callee can modify the data and return it.
-
FILTER_DESERIALIZED_REQUEST_HANDLER
-
filter called to allow a plugin to override the default amf deserialized request handler.
-
FILTER_DESERIALIZED_RESPONSE
-
filter called when the response is ready but not yet serialized. The callee can modify the data and return it.
-
FILTER_DESERIALIZER
-
filter called to allow a plugin to override the default amf deserializer.
-
FILTER_EXCEPTION_HANDLER
-
filter called to allow a plugin to override the default amf exception handler.
-
FILTER_SERIALIZED_REQUEST
-
filter called when the serialized request comes in.
-
FILTER_SERIALIZED_RESPONSE
-
filter called when the packet response is ready and serialized.
-
FILTER_SERIALIZER
-
filter called to allow a plugin to override the default amf serializer.
-
FILTER_SERVICE_OBJECT
-
filter called when the service object is created. Useful for authentication
-
FLEX_TYPE_ACKNOWLEDGE_MESSAGE
-
-
FLEX_TYPE_COMMAND_MESSAGE
-
-
FLEX_TYPE_ERROR_MESSAGE
-
-
FLEX_TYPE_REMOTING_MESSAGE
-
-
FilterManagerTest.php
-
-
$rawData
-
-
$required
-
Required is a boolean determining whether the remote system must understand this header in order to operate. If the system does not understand the header then it should not execute the method call.
-
$responseUri
-
in the case of a request: operation name, for example /1
-
readAmf3Array
-
-
readAmf3Array
-
-
readAmf3ByteArray
-
-
readAmf3ByteArray
-
-
readAmf3Data
-
-
readAmf3Data
-
-
readAmf3Date
-
-
readAmf3Int
-
Handle decoding of the variable-length representation which gives seven bits of value per serialized byte by using the high-order bit of each byte as a continuation flag.
-
readAmf3Object
-
this probably needs some refactoring. Leave as is for now... A.S.
-
readAmf3Object
-
-
readAmf3String
-
readString
-
readAmf3String
-
-
readAmf3XmlString
-
-
readArray
-
-
readArray
-
readArray turns an all numeric keyed actionscript array into a php array.
-
readBuffer
-
Taken from SabreAmf
-
readByte
-
-
readByte
-
readByte grabs the next byte from the data stream and returns it.
-
readCustomClass
-
readCustomClass reads the amf content associated with a class instance which was registered with Object.registerClass. In order to preserve the class name an additional property is assigned to the object Amfphp_Core_Amf_Constants::FIELD_EXPLICIT_TYPE. This property will be overwritten if it existed within the class already.
-
readData
-
readData is the main switch for mapping a type code to an actual implementation for deciphering it.
-
readDate
-
-
readDate
-
readDate reads a date from the amf Packet and returns the time in ms.
-
readDouble
-
-
readDouble
-
readDouble reads the floating point value from the bytes stream and properly orders the bytes depending on the system architecture.
-
readHeaders
-
readHeaders converts that header section of the amf Packet into php obects.
-
readInt
-
-
readInt
-
readInt grabs the next 2 bytes and returns the next two bytes, shifted and combined to produce the resulting integer
-
readLong
-
readLong grabs the next 4 bytes shifts and combines them to produce an integer
-
readLong
-
-
readLongUTF
-
readLongUTF first grabs the next 4 bytes which represent the string length.
-
readLongUtf
-
-
readMessages
-
-
readMixedArray
-
-
readMixedArray
-
readMixedArray turns an array with numeric and string indexes into a php array
-
readMixedObject
-
readMixedObject reads the name/value properties of the amf Packet and converts numeric looking keys to numeric keys
-
readObject
-
-
readObject
-
readObject reads the name/value properties of the amf Packet and converts them into their equivilent php representation
-
readReference
-
-
readReference
-
readReference replaces the old readFlushedSO. It treats where there
-
readUTF
-
readUTF first grabs the next 2 bytes which represent the string length.
-
readUtf
-
-
returnNull
-
-
returnOneParam
-
-
returnSum
-
-
$s2Headers2MessagesPacket
-
-
$sBinary
-
-
$sBoolean
-
-
$sByte
-
-
$sByteArray
-
-
$sDate
-
-
$sDate
-
-
$sDenseArray
-
-
$sDouble
-
-
$sDouble
-
-
$sEcmaArray
-
-
$sEmptyArray
-
-
$sEmptyPacket
-
-
$sEmptyString
-
-
$serviceFolderPaths
-
paths to folders containing services(relative or absolute)
-
$serviceFolderPaths
-
paths to folders containing services(relative or absolute)
-
$serviceFolderPaths
-
-
$serviceName
-
the name of the service.
-
$serviceNames2ClassFindInfo
-
-
$serviceNames2ClassFindInfo
-
a dictionary of service classes represented in a ClassFindInfo.
-
$serviceNames2ClassFindInfo
-
-
$serviceObj
-
-
$serviceRouter
-
-
$sFalse
-
-
$sInt
-
-
$sInt1
-
-
$sInt2
-
-
$sLong
-
-
$sLongString
-
-
$sLongString
-
-
$sLongUtf
-
-
$sMixedArray
-
-
$sNull
-
-
$sNull
-
-
$sNullHeaderPacket
-
-
$sNullMessagePacket
-
-
$sNumber
-
-
$sObject
-
-
$sObject
-
-
$sObjectEnd
-
-
$sReference
-
-
$sStrictArray
-
-
$sString
-
-
$sString
-
-
$sStringHeaderPacket
-
-
$sStringMessagePacket
-
-
$sStringTwice
-
-
$storedDefinitions
-
-
$storedObjects
-
-
$storedStrings
-
-
$sTrue
-
-
$sTypedObject
-
-
$sUndefined
-
-
$sUndefined
-
-
$sUnsupported
-
-
$sUtf
-
-
$sXml
-
-
$sXml
-
-
$sXmlDocument
-
-
Serializer.php
-
-
ServiceCallParameters.php
-
-
ServiceRouter.php
-
-
SerializationTest
-
Unit tests for Amfphp_Core_Amf_Serializer note: phpunit dataProvider mechanism doesn't work well, so lots of boiler plate code here. Oh well... A.S.
-
serialize
-
-
serialize
-
-
serialize
-
Encode the PHP object returned from the service call into a JSON string
-
serialize
-
serializes the Packet passed in the constructor TODO clean up the mess with the temp buffers. A.S.
-
serialize
-
Calling this executes the serialization. The return type is noted as a String, but is a binary stream. echo it to the output buffer
-
service
-
The service method runs the gateway application. It deserializes the raw data passed into the constructor as an Amfphp_Core_Amf_Packet, handles the headers, handles the messages as requests to services, and returns the responses from the services It does not however handle output headers, gzip compression, etc. that is the job of the calling script
-
SESSION_FIELD_ROLES
-
the field in the session where the roles array is stored
-
setUp
-
Sets up the fixture, for example, opens a network connection.
-
setUp
-
Sets up the fixture, for example, opens a network connection.
-
setUp
-
Sets up the fixture, for example, opens a network connection.
-
setUp
-
Sets up the fixture, for example, opens a network connection.
-
setUp
-
Sets up the fixture, for example, opens a network connection.
-
setUp
-
Sets up the fixture, for example, opens a network connection.
-
setUp
-
Sets up the fixture, for example, opens a network connection.
-
SerializationTest.php
-
-
ServiceRouterTest.php
-
-
writeAmf3Array
-
-
writeAmf3Array
-
-
writeAmf3ArrayCollectionPreamble
-
Write an ArrayCollection
-
writeAmf3Bool
-
-
writeAmf3Bool
-
Write a boolean (Amf3).
-
writeAmf3ByteArray
-
-
writeAmf3ByteArray
-
-
writeAmf3ByteArrayMessage
-
-
writeAmf3Data
-
-
writeAmf3Data
-
-
writeAmf3Int
-
Write an (un-)signed integer (Amf3).
-
writeAmf3Null
-
-
writeAmf3Null
-
Write NULL (Amf3).
-
writeAmf3Number
-
-
writeAmf3Number
-
-
writeAmf3Object
-
-
writeAmf3Object
-
-
writeAmf3ObjectFromArray
-
Serialise the array as if it is an object.
-
writeAmf3String
-
-
writeAmf3String
-
Write a string (Amf3). Strings are stored in a cache and in case the same string is written again, a reference to the string is sent instead of the string itself.
-
writeAmf3Undefined
-
-
writeAmf3Undefined
-
Write undefined (Amf3).
-
writeAmf3Xml
-
-
writeAmf3Xml
-
-
writeAnonymousObject
-
writeObject handles writing a php array with string or mixed keys. It does not write the object code as that is handled by the writeArrayOrObject and this method is shared with the CustomClass writer which doesn't use the object code.
-
writeArrayOrObject
-
-
writeArrayOrObject
-
writeArrayOrObject first deterines if the PHP array contains all numeric indexes or a mix of keys. Then it either writes the array code (0x0A) or the object code (0x03) and then the associated data.
-
writeBoolean
-
-
writeBoolean
-
writeBoolean writes the boolean code (0x01) and the data to the output stream
-
writeByte
-
writeByte writes a singe byte to the output stream 0-255 range
-
writeByte
-
-
writeData
-
writeData checks to see if the type was declared and then either auto negotiates the type or relies on the user defined type to serialize the data into Amf
-
writeDate
-
-
writeDate
-
writeData writes the date code (0x0B) and the date value to the output stream
-
writeDouble
-
-
writeDouble
-
writeDouble takes a float as the input and writes it to the output stream.
-
writeInt
-
writeInt takes an int and writes it as 2 bytes to the output stream 0-65535 range
-
writeInt
-
-
writeLong
-
writeLong takes an int, float or double and converts it to a 4 byte binary string and adds it to the output buffer
-
writeLong
-
-
writeLongUtf
-
-
writeLongUtf
-
writeLongUTF will write a string longer than 65535 characters.
-
writeNull
-
-
writeNull
-
writeNull writes the null code (0x05) to the output stream
-
writeNumber
-
-
writeNumber
-
writeNumber writes the number code (0x00) and the numeric data to the output stream All numbers passed through remoting are floats.
-
writeObjectEnd
-
writeObjectEnd writes the object end code (0x009) to the output stream
-
writeObjectEnd
-
-
writeObjectFromArray
-
writeObjectFromArray handles writing a php array with string or mixed keys. It does not write the object code as that is handled by the writeArrayOrObject and this method is shared with the CustomClass writer which doesn't use the object code.
-
writePlainArray
-
Write a plain numeric array without anything fancy
-
writeReference
-
-
writeReference
-
-
writeReferenceIfExists
-
-
writeString
-
-
writeString
-
writeString writes the string code (0x02) and the UTF8 encoded string to the output stream.
-
writeTypedObject
-
writeTypedObject takes an instance of a class and writes the variables defined in it to the output stream.
-
writeTypedObject
-
-
writeUndefined
-
writeUndefined writes the Undefined code (0x06) to the output stream
-
writeUndefined
-
-
writeUtf
-
writeUTF takes and input string, writes the length as an int and then appends the string to the output buffer
-
writeUtf
-
-
writeXML
-
writeXML writes the xml code (0x0F) and the XML string to the output stream
-
writeXML
-