Quercus: Env

From Resin 3.0

Jump to: navigation, search

The Env class, com.caucho.quercus.env.Env is the main access to the PHP runtime environment.

The Env class is useful to retreive things from the servlet context. To obtain an instance of the Env class in your module, include it as the first argument of your method. i.e.:

 public Object getrequestattribute(Env env, String attribute) 
     //Env gives you access to the HttpServletRequest and HttpServletResponse objects and a host of other objects
     return env.getRequest().getAttribute(attribute);
Personal tools