[Amfphp_Core_Amf] element index

Package indexes

All elements
a b c d f g h i l m n o p r s t u w x _
_
top
__construct
The constructor function for a new Amf object.
__construct
__construct
__construct
Amfphp_Core_Amf_Header is the Constructor function for the Amfphp_Core_Amf_Header data type.
__construct
__construct
a
top
$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
Amfphp_Core_Amf_Constants in Constants.php
constants relative to the Amf format
Amfphp_Core_Amf_Deserializer
Amfphp_Core_Amf_Deserializer in Deserializer.php
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
Amfphp_Core_Amf_Serializer in Serializer.php
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.
b
top
ByteArray.php
ByteArray.php in ByteArray.php
c
top
$className2TraitsInfo
used for traits references. key: class name. value: array(reference id, array(property names))
$currentByte
The current seek cursor of the stream
Constants.php
Constants.php in Constants.php
CLIENT_FAILURE_METHOD
The status method name
CLIENT_SUCCESS_METHOD
The success method name
CONTENT_TYPE
The AMf content type, for use in the headers
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
d
top
$data
$data
data is the actual object data of the header key
$deserializedPacket
the Packet contained in the serialized data
Deserializer.php
Deserializer.php in Deserializer.php
DEFAULT_REQUEST_RESPONSE_URI
used when there is an error and the request response uri is not available
deserialize
deserialize invokes this class to transform the raw data into valid object
deserialize
f
top
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_EXTERNALIZED_DATA
if an object is marked as externalizable(AMF3 and later), this is where the externalized data goes.
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.
g
top
getAmf3Int
Return the serialisation of the given integer (Amf3).
getOutput
getServiceCallParameters
creates a ServiceCallParamaeters object from an Amfphp_Core_Amf_Message
h
top
$headers
The place to keep the headers data
$headersLeftToProcess
The number of headers in the packet left to process
Handler.php
Handler.php in Handler.php
Header.php
Header.php in Header.php
handleDeserializedRequest
handleException
handleReference
looks if $obj already has a reference. If it does, write it, and return true. If not, add it to the references array.
handleRequestMessage
process a request and generate a response.
i
top
isSystemBigEndian
looks if the system is Big Endain or not
is_byteArray
Determines whether an object is the ActionScript type 'ByteArray'
is_date
Determines whether an object is the ActionScript type 'Date'
is_undefined
Determines whether an object is the ActionScript type 'undefined'
is_Xml
Determines whether an object is the ActionScript type 'XML'
is_XmlDocument
Determines whether an object is the ActionScript type 'XmlDoument'
l
top
$lastRequestMessageResponseUri
Amf specifies that an error message must be aimed at an end point. This stores the last message's response Uri to be able to give this end point
m
top
$messages
The place to keep the Message elements
$messagesLeftToProcess
The number of Messages in the packet left to process
$meta
metaInfo
Message.php
Message.php in Message.php
MAX_STORED_OBJECTS
the maximum amount of objects stored for reference
n
top
$name
Name is the string name of the header key
o
top
$objectEncoding
$outBuffer
p
top
$packet
Packet.php
Packet.php in Packet.php
r
top
$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
s
top
$storedDefinitions
$storedObjects
used for Amf3 references
$storedObjects
$storedStrings
amf3 references to strings
$storedStrings
Serializer.php
Serializer.php in Serializer.php
serialize
serializes the Packet passed in the constructor TODO clean up the mess with the temp buffers. A.S.
serialize
t
top
$targetUri
inthe case of a request:
u
top
Undefined.php
Undefined.php in Undefined.php
Util.php
Util.php in Util.php
w
top
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
x
top
Xml.php
Xml.php in Xml.php
XmlDocument.php
XmlDocument.php in XmlDocument.php
a b c d f g h i l m n o p r s t u w x _