[Amfphp_Core_Amf] element index

Package indexes

All elements
a b c d f g h i m n p r s t u w _
_
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
$amf0storedObjects
$amfVersion
either 0 or 3. This is stored here when deserializing, because the serializer needs the info
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
$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
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
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
i
top
isSystemBigEndian
looks if the system is Big Endain or not
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
p
top
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
readAmf3Array
readAmf3ByteArray
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.
readAmf3String
readString
readAmf3XmlString
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.
s
top
$storedDefinitions
$storedObjects
$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
writeAmf3Array
writeAmf3ArrayCollectionPreamble
Write an ArrayCollection
writeAmf3Bool
Write a boolean (Amf3).
writeAmf3ByteArray
writeAmf3ByteArrayMessage
writeAmf3Data
writeAmf3Int
Write an (un-)signed integer (Amf3).
writeAmf3Null
Write NULL (Amf3).
writeAmf3Number
writeAmf3Object
writeAmf3ObjectFromArray
Serialise the array as if it is an object.
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
Write undefined (Amf3).
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 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 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 to the output stream
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
writeReferenceIfExists
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
a b c d f g h i m n p r s t u w _