This class exports some internal (public) methods.
This way, those methods
can be tested separately.
Methods
constructor
__construct(string $raw)
convert from text/binary to php object
deserialize(array $getData, array $postData, string $rawPostData) : \Amfphp_Core_Amf_Packet
Inherited
inherited_from |
\Amfphp_Core_Amf_Deserializer::deserialize() |
Parameters
$getData
array
$postData
array
$rawPostData
string
Returns
read amf 3 array
readAmf3Array() : array
read amf3 data
readAmf3Data() : mixed
read amf 3 object
readAmf3Object() : \stdClass
read amf3 string
readAmf3String() : string
read array
readArray() : array
read byte
readByte() : int
readData is the main switch for mapping a type code to an actual
implementation for deciphering it.
readData(mixed $type) : mixed
Inherited
inherited_from |
\Amfphp_Core_Amf_Deserializer::readData() |
Parameters
$type
mixed
The $type integer
Returns
mixed
The php version of the data in the Packet block
reaad double
readDouble() : float
read long
readLong() : int
read long utf
readLongUtf() : string
read mixed array
readMixedArray() : array
read reference
readReference() : \stdClass
It treats where there
are references to other objects. Currently it does not resolve the
object as this would involve a serious amount of overhead, unless
you have a genius idea
Returns
read utf
readUtf() : string
read amf 3 date
readAmf3Date() : boolean | \Amfphp_Core_Amf_Types_Date
Inherited
inherited_from |
\Amfphp_Core_Amf_Deserializer::readAmf3Date() |
Exceptions
Returns
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.
readAmf3Int() : \read
Inherited
inherited_from |
\Amfphp_Core_Amf_Deserializer::readAmf3Int() |
Returns
\read
integer value
read amf 3 xml
readAmf3Xml() : \Amfphp_Core_Amf_Types_Xml
Inherited
inherited_from |
\Amfphp_Core_Amf_Deserializer::readAmf3Xml() |
Returns
read amf 3 xml doc
readAmf3XmlDocument() : \Amfphp_Core_Amf_Types_Xml
Inherited
inherited_from |
\Amfphp_Core_Amf_Deserializer::readAmf3XmlDocument() |
Returns
read some data and move pointer
readBuffer(\type $len) : mixed
Inherited
inherited_from |
\Amfphp_Core_Amf_Deserializer::readBuffer() |
Parameters
$len
\type
Returns
mixed
readCustomClass reads the amf content associated with a class instance which was registered
with Object.registerClass.
readCustomClass() : object
Inherited
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.
inherited_from |
\Amfphp_Core_Amf_Deserializer::readCustomClass() |
Returns
object
The php representation of the object
readLongUTF first grabs the next 4 bytes which represent the string length.
readLongUTF() : string
Inherited
Then it grabs the next (len) bytes of the resulting in the string
inherited_from |
\Amfphp_Core_Amf_Deserializer::readLongUTF() |
Returns
string
The utf8 decoded string
read messages in AMF packet
readMessages()
Inherited
inherited_from |
\Amfphp_Core_Amf_Deserializer::readMessages() |
readMixedObject reads the name/value properties of the amf Packet and converts
numeric looking keys to numeric keys
readMixedObject() : array
Inherited
inherited_from |
\Amfphp_Core_Amf_Deserializer::readMixedObject() |
Returns
array
The php array with the object data
readUTF first grabs the next 2 bytes which represent the string length.
readUTF() : string
Inherited
Then it grabs the next (len) bytes of the resulting string.
inherited_from |
\Amfphp_Core_Amf_Deserializer::readUTF() |
Returns
string
The utf8 decoded string
reset reference stores
resetReferences()
Inherited
inherited_from |
\Amfphp_Core_Amf_Deserializer::resetReferences() |
Properties
$amf0storedObjects : array
Inherited
inherited_from |
\Amfphp_Core_Amf_Deserializer::$$amf0storedObjects |
$currentByte : int
Inherited
access |
protected |
inherited_from |
\Amfphp_Core_Amf_Deserializer::$$currentByte |
$deserializedPacket : \<Amfphp_Core_Amf_Packet>
Inherited
inherited_from |
\Amfphp_Core_Amf_Deserializer::$$deserializedPacket |
$messagesLeftToProcess : int
Inherited
access |
protected |
inherited_from |
\Amfphp_Core_Amf_Deserializer::$$messagesLeftToProcess |
$rawData : string
Inherited
inherited_from |
\Amfphp_Core_Amf_Deserializer::$$rawData |
$storedDefinitions : array
Inherited
inherited_from |
\Amfphp_Core_Amf_Deserializer::$$storedDefinitions |
$storedObjects : array
Inherited
inherited_from |
\Amfphp_Core_Amf_Deserializer::$$storedObjects |
$storedStrings : array
Inherited
inherited_from |
\Amfphp_Core_Amf_Deserializer::$$storedStrings |