-
$additionnalResponseHeaders
-
set this if you need additional headers in the response. They will be added after normal treatment
-
$additionnalResponseMessages
-
set this if you need additional messages in the response. They will be added after normal treatment
-
$Amf0StoredObjects
-
used for Amf0 references
-
$amf0storedObjects
-
-
$amfVersion
-
either 0 or 3. This is stored here when deserializing, because the serializer needs the info
-
AMF0_ENCODING
-
amf0 encoding
-
AMF3_ENCODING
-
amf3 encoding
-
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_Util
-
utils for Amf handling
-
applyFunctionToContainedObjects
-
applies a function to all objects contained by $obj and $obj itself.
-
$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
-
$returnErrorDetails
-
-
readAmf3Array
-
-
readAmf3ByteArray
-
-
readAmf3Data
-
read the type byte, then call the corresponding amf3 data reading function
-
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.
-
readAmf3String
-
readString
-
readAmf3Xml
-
-
readAmf3XmlDocument
-
-
readArray
-
readArray turns an all numeric keyed actionscript array into a php array.
-
readBuffer
-
Taken from SabreAmf
-
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 reads a date from the amf Packet and returns the time in ms.
-
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 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
-
readLongUTF
-
readLongUTF first grabs the next 4 bytes which represent the string length.
-
readMessages
-
-
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 reads the name/value properties of the amf Packet and converts them into their equivilent php representation
-
readReference
-
readReference replaces the old readFlushedSO. It treats where there
-
readUTF
-
readUTF first grabs the next 2 bytes which represent the string length.
-
readXml
-
-
resetReferences
-
initialize reference arrays and counters. Call before writing a body or a header, as the indices are local to each message body or header
-
resetReferences
-
-
writeAmf3AnonymousObject
-
handles writing an anoynous object (stdClass) can also be a reference Also creates a bogus traits entry, as even an anonymous object has traits. In this way a reference to a class trait will have the right id.
-
writeAmf3Array
-
-
writeAmf3Bool
-
Write a boolean (Amf3).
-
writeAmf3ByteArray
-
-
writeAmf3Data
-
-
writeAmf3Date
-
-
writeAmf3Int
-
Write an (un-)signed integer (Amf3).
-
writeAmf3Null
-
Write NULL (Amf3).
-
writeAmf3Number
-
-
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.
-
writeAmf3TypedObject
-
writes a typed object. Type is determined by having an "explicit type" field. If this field is not set, call writeAmf3AnonymousObject write all properties as sealed members.
-
writeAmf3Undefined
-
Write undefined (Amf3).
-
writeAmf3Xml
-
-
writeAmf3XmlDocument
-
-
writeAnonymousObject
-
handles writing an anoynous object (stdClass) can also be a reference
-
writeArrayOrObject
-
writeArrayOrObject first determines 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 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
-
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
-
writeData writes the date code (0x0B) and the date value (milliseconds from 1 January 1970) to the output stream, along with an empty unsupported timezone
-
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
-
writeLong
-
writeLong takes an int, float or double and converts it to a 4 byte binary string and adds it to the output buffer
-
writeLongUtf
-
writeLongUTF will write a string longer than 65535 characters.
-
writeNull
-
writeNull writes the null code (0x05) to the output stream
-
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
-
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
-
-
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.
-
writeUndefined
-
writeUndefined writes the Undefined code (0x06) to the output stream
-
writeUtf
-
writeUTF takes and input string, writes the length as an int and then appends the string to the output buffer
-
writeXML
-
writeXML writes the xml code (0x0F) and the XML string to the output stream