php.java.bridge
Class Response.ValuesHook

java.lang.Object
  extended by php.java.bridge.Response.ValuesHook
Enclosing class:
Response

public static class Response.ValuesHook
extends java.lang.Object


Constructor Summary
Response.ValuesHook(Response res)
          For PHP5: convert Map or Collection into a PHP array, sends the entire Map or Collection to the client.
 
Method Summary
 boolean sendArraysAsValues()
          Override this method to return true if you want to send back arrays as values.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Response.ValuesHook

public Response.ValuesHook(Response res)
For PHP5: convert Map or Collection into a PHP array, sends the entire Map or Collection to the client. This is much more efficient than generating round-trips when iterating through a Map or Collection.

Method Detail

sendArraysAsValues

public boolean sendArraysAsValues()
Override this method to return true if you want to send back arrays as values. The default method returns true for PHP4 and false for PHP5

Returns:
true: copy array values, false: send object references