Zend Framework

Control AMF serialization depth of an object tree

Details

  • Type: New Feature New Feature
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: 1.8.1
  • Fix Version/s: None
  • Component/s: Zend_Amf
  • Labels:
    None

Description

In our project we want to control how far the Zend_Amf_Serializer digs in an object tree. Because in some cases we can have a very deep tree dumped in the AMF stream... For instance, something like this would be awesome :

$server = new Zend_Amf_Server();
$server->serializationDepth = 3;
echo ($server->handle());

Besides, rather than just replacing too-deep objects by null, the serializer could replace them by an object indicating that the object has to be loaded (kind of lazy-loading)

I am not sure if there are already patterns for these behaviors (I did not find any on Java's RMI... but I am certainly no expert).

Thanks,

Activity

There are no comments yet on this issue.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated: