API Documentation

Amf/Parse/Amf3/Serializer.php

Includes Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Amf
subpackage
Parse_Amf3
version
$Id: Serializer.php 21969 2010-04-22 03:54:59Z matthew $
Classes
Zend_Amf_Parse_Amf3_Serializer

Description

Zend Framework

LICENSE

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.

Zend_Amf_Parse_Amf3_Serializer

Extends from
Zend_Amf_Parse_Serializer
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Amf
subpackage
Parse_Amf3
Properties
$_strEmpty
$_referenceObjects
$_referenceStrings
$_referenceDefinitions
Methods
writeTypeMarker
writeInteger
writeBinaryString
writeString
writeByteArray
writeXml
writeDate
writeArray
writeObjectReference
writeObject

Description

Detect PHP object type and convert it to a corresponding AMF3 object type

Properties

$_referenceDefinitions

array $_referenceDefinitions = 'array'

An array of reference class definitions, indexed by classname

Details

$_referenceDefinitions
array
visibility
protected
default
array
final
false
static
false

$_referenceObjects

array $_referenceObjects = 'array'

An array of reference objects per amf body

Details

$_referenceObjects
array
visibility
protected
default
array
final
false
static
false

$_referenceStrings

array $_referenceStrings = 'array'

An array of reference strings per amf body

Details

$_referenceStrings
array
visibility
protected
default
array
final
false
static
false

$_strEmpty

string $_strEmpty = ''

A constant empty string

Details

$_strEmpty
string
visibility
protected
default
final
false
static
false

Methods

writeArray

writeArray( array $array ) : Zend_Amf_Parse_Amf3_Serializer

Write a PHP array back to the amf output stream

Arguments
$array
array
Details
visibility
public
final
false
static
false

writeBinaryString

writeBinaryString( string $string ) : Zend_Amf_Parse_Amf3_Serializer

Send string to output stream, without trying to reference it.

The string is prepended with strlen($string) << 1 | 0x01

Arguments
$string
string
Details
visibility
protected
final
false
static
false

writeByteArray

writeByteArray( string|Zend_Amf_Value_ByteArray $data ) : Zend_Amf_Parse_Amf3_Serializer

Send ByteArray to output stream

Arguments
$data
stringZend_Amf_Value_ByteArray
Details
visibility
public
final
false
static
false

writeDate

writeDate( DateTime|Zend_Date $date ) : Zend_Amf_Parse_Amf3_Serializer

Convert DateTime/Zend_Date to AMF date

Arguments
$date
DateTimeZend_Date
Details
visibility
public
final
false
static
false

writeInteger

writeInteger(  $int ) : Zend_Amf_Parse_Amf3_Serializer

Write an AMF3 integer

Arguments
$int
Details
visibility
public
final
false
static
false

writeObject

writeObject(  $object ) : Zend_Amf_Parse_Amf3_Serializer

Write object to ouput stream

Arguments
$object
Details
visibility
public
final
false
static
false

writeObjectReference

writeObjectReference( mixed $object, mixed $objectByVal = false ) : Boolean

Check if the given object is in the reference table, write the reference if it exists, otherwise add the object to the reference table

Arguments
$object
mixed
object reference to check for reference
$objectByVal
mixed
object to check for reference
Output
Boolean
true, if the reference was written, false otherwise
Details
visibility
protected
final
false
static
false

writeString

writeString( string $string ) : Zend_Amf_Parse_Amf3_Serializer

Send string to output stream

Arguments
$string
string
Details
visibility
public
final
false
static
false

writeTypeMarker

writeTypeMarker( mixed $data, int $markerType = null, mixed $dataByVal = false ) : void

Serialize PHP types to AMF3 and write to stream

Checks to see if the type was declared and then either auto negotiates the type or use the user defined markerType to serialize the data from php back to AMF3

Arguments
$data
mixed
$markerType
int
$dataByVal
mixed
Details
visibility
public
final
false
static
false

writeXml

writeXml( DOMDocument|SimpleXMLElement $xml ) : Zend_Amf_Parse_Amf3_Serializer

Send xml to output stream

Arguments
$xml
DOMDocumentSimpleXMLElement
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox.