API Documentation

Amf/Parse/Amf0/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_Amf0
version
$Id: Serializer.php 21969 2010-04-22 03:54:59Z matthew $
Classes
Zend_Amf_Parse_Amf0_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_Amf0_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_Amf0
uses
Zend_Amf_Parse_Serializer
Properties
$_className
$_referenceObjects
Methods
writeTypeMarker
writeObjectReference
writeObject
writeArray
writeDate
writeTypedObject
writeAmf3TypeMarker
getClassName

Description

Serializer PHP misc types back to there corresponding AMF0 Type Marker.

Properties

$_className

string $_className = ''

Details

$_className
string
Name of the class to be returned
visibility
protected
default
final
false
static
false

$_referenceObjects

array $_referenceObjects = 'array'

An array of reference objects

Details

$_referenceObjects
array
visibility
protected
default
array
final
false
static
false

Methods

getClassName

getClassName( object $object ) : false|string

Find if the class name is a class mapped name and return the respective classname if it is.

Arguments
$object
object
Output
false|string
$className
Details
visibility
protected
final
false
static
false

writeAmf3TypeMarker

writeAmf3TypeMarker( string $data ) : Zend_Amf_Parse_Amf0_Serializer

Encountered and AMF3 Type Marker use AMF3 serializer. Once AMF3 is encountered it will not return to AMf0.

Arguments
$data
string
Details
visibility
public
final
false
static
false

writeArray

writeArray( array $array ) : Zend_Amf_Parse_Amf0_Serializer

Write a standard numeric array to the output stream. If a mixed array is encountered call writeTypeMarker with mixed array.

Arguments
$array
array
Details
visibility
public
final
false
static
false

writeDate

writeDate( DateTime|Zend_Date $data ) : Zend_Amf_Parse_Amf0_Serializer

Convert the DateTime into an AMF Date

Arguments
$data
DateTimeZend_Date
Details
visibility
public
final
false
static
false

writeObject

writeObject(  $object ) : Zend_Amf_Parse_Amf0_Serializer

Write a PHP array with string or mixed keys.

Arguments
$object
Details
visibility
public
final
false
static
false

writeObjectReference

writeObjectReference( mixed $object, $markerType $markerType, 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
$markerType
$markerType
AMF type of the object to write
$objectByVal
mixed
object to check for reference
Output
Boolean
true, if the reference was written, false otherwise
Details
visibility
protected
final
false
static
false

writeTypeMarker

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

Determine type and serialize accordingly

Checks to see if the type was declared and then either auto negotiates the type or relies on the user defined markerType to serialize the data into amf

Arguments
$data
mixed
$markerType
mixed
$dataByVal
mixed
Details
visibility
public
final
false
static
false
throws
for unrecognized types or data

writeTypedObject

writeTypedObject( object $data ) : Zend_Amf_Parse_Amf0_Serializer

Write a class mapped object to the output stream.

Arguments
$data
object
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox.