프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$voConverter | Amfphp_Core_Common_IVoConverter | converts VOs directly if set, rather than instanciating anonymous classes that are converted later |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$amf0storedObjects | array | objects stored for tracking references(amf0) | |
$currentByte | integer | The current seek cursor of the stream note: must be initialised here to avoid error 'String offset cast occured' | |
$deserializedPacket | the Packet contained in the serialized data | ||
$headersLeftToProcess | integer | The number of headers in the packet left to process | |
$messagesLeftToProcess | integer | The number of Messages in the packet left to process | |
$rawData | string | data to deserialize | |
$storedDefinitions | array | class definitions(traits) stored for tracking references(amf3) | |
$storedObjects | array | objects stored for tracking references(amf3) | |
$storedStrings | array | strings stored for tracking references(amf3) |
메소드 | 설명 | |
---|---|---|
deserialize ( array $getData, array $postData, string $rawPostData ) : Amfphp_Core_Amf_Packet | convert from text/binary to php object | |
readAmf3Data ( ) : mixed | read the type byte, then call the corresponding amf3 data reading function | |
readData ( mixed $type ) : mixed | readData is the main switch for mapping a type code to an actual implementation for deciphering it. |
메소드 | 설명 | |
---|---|---|
readAmf3Array ( ) : array | read amf 3 array | |
readAmf3ByteArray ( ) : Amfphp_Core_Amf_Types_ByteArray | read Amf 3 byte array | |
readAmf3Date ( ) : boolean | Amfphp_Core_Amf_Types_Date | read amf 3 date | |
readAmf3Int ( ) : read | 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 ( ) : mixed | read amf 3 object | |
readAmf3String ( ) : string | readString | |
readAmf3Vector ( $type ) : array | Reads a vector array of objects from the AMF stream. This works for all vector arrays: vector-object, vector-int vector-uint and vector-double. The Vector is cast to a PHP array. Please note that because of the way php handles integers, uints have to be cast as floats. See {@link http://php.net/manual/en/language.types.integer.php} | |
readAmf3VectorValue ( $length, $format ) : |
Read numeric values from the AMF byte stream. Please be aware that unsigned integers are not really supported in PHP, and for this reason unsigned integers are cast to float. {@link http://php.net/manual/en/language.types.integer.php}. | |
readAmf3Xml ( ) : Amfphp_Core_Amf_Types_Xml | read amf 3 xml | |
readAmf3XmlDocument ( ) : Amfphp_Core_Amf_Types_Xml | read amf 3 xml doc | |
readArray ( ) : array | readArray turns an all numeric keyed actionscript array into a php array. | |
readBuffer ( type $len ) : mixed | read some data and move pointer | |
readByte ( ) : integer | readByte grabs the next byte from the data stream and returns it. | |
readCustomClass ( ) : object | readCustomClass reads the amf content associated with a class instance which was registered with Object.registerClass. | |
readDate ( ) : Amfphp_Core_Amf_Types_Date | readDate reads a date from the amf Packet and returns the time in ms. | |
readDouble ( ) : float | 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 ( ) : integer | readInt grabs the next 2 bytes and returns the next two bytes, shifted and combined to produce the resulting integer | |
readLong ( ) : integer | readLong grabs the next 4 bytes shifts and combines them to produce an integer | |
readLongUTF ( ) : string | readLongUTF first grabs the next 4 bytes which represent the string length. | |
readMessages ( ) | read messages in AMF packet | |
readMixedArray ( ) : array | readMixedArray turns an array with numeric and string indexes into a php array | |
readMixedObject ( ) : array | readMixedObject reads the name/value properties of the amf Packet and converts numeric looking keys to numeric keys | |
readObject ( ) : Object | readObject reads the name/value properties of the amf Packet and converts them into their equivilent php representation | |
readReference ( ) : String | readReference replaces the old readFlushedSO. 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 | |
readUTF ( ) : string | readUTF first grabs the next 2 bytes which represent the string length. | |
readXml ( ) : Amfphp_Core_Amf_Types_Xml | read xml | |
resetReferences ( ) | reset reference stores | |
resolveType ( type $typeIdentifier ) : stdClass | tries to use the type to get a typed object. If not possible, return a stdClass, with the explicit type marker set if the type was not just an empty string |
protected readAmf3ByteArray ( ) : Amfphp_Core_Amf_Types_ByteArray | ||
리턴 | Amfphp_Core_Amf_Types_ByteArray |
public readAmf3Data ( ) : mixed | ||
리턴 | mixed |
protected readAmf3Date ( ) : boolean | Amfphp_Core_Amf_Types_Date | ||
리턴 | boolean | Amfphp_Core_Amf_Types_Date |
protected readAmf3Int ( ) : read | ||
리턴 | read | integer value |
protected readAmf3Object ( ) : mixed | ||
리턴 | mixed | stdClass, or VoClass if VoConverter could find it. |
protected readAmf3Vector ( $type ) : array | ||
리턴 | array | The objects in the vector in a native PHP array. |
protected readAmf3VectorValue ( $length, $format ) : |
||
리턴 |
protected readAmf3Xml ( ) : Amfphp_Core_Amf_Types_Xml | ||
리턴 | Amfphp_Core_Amf_Types_Xml |
protected readAmf3XmlDocument ( ) : Amfphp_Core_Amf_Types_Xml | ||
리턴 | Amfphp_Core_Amf_Types_Xml |
protected readBuffer ( type $len ) : mixed | ||
$len | type | |
리턴 | mixed |
protected readCustomClass ( ) : object | ||
리턴 | object | The php representation of the object |
protected readDate ( ) : Amfphp_Core_Amf_Types_Date | ||
리턴 | Amfphp_Core_Amf_Types_Date | a container with the date in ms. |
protected readDouble ( ) : float | ||
리턴 | float | The floating point value of the next 8 bytes |
protected readHeaders ( ) |
protected readLongUTF ( ) : string | ||
리턴 | string | The utf8 decoded string |
protected readMixedArray ( ) : array | ||
리턴 | array | The php array with mixed indexes |
protected readMixedObject ( ) : array | ||
리턴 | array | The php array with the object data |
protected readObject ( ) : Object | ||
리턴 | Object | The php object filled with the data |
protected readReference ( ) : String | ||
리턴 | String |
protected readXml ( ) : Amfphp_Core_Amf_Types_Xml | ||
리턴 | Amfphp_Core_Amf_Types_Xml |
protected resolveType ( type $typeIdentifier ) : stdClass | ||
$typeIdentifier | type | |
리턴 | stdClass | or typed object |
protected array $amf0storedObjects | ||
리턴 | array |
protected int $currentByte | ||
리턴 | integer |
protected |
||
리턴 |
protected int $headersLeftToProcess | ||
리턴 | integer |
protected int $messagesLeftToProcess | ||
리턴 | integer |
protected array $storedDefinitions | ||
리턴 | array |
protected array $storedObjects | ||
리턴 | array |
protected array $storedStrings | ||
리턴 | array |