com.caucho.quercus.lib
Class QuercusModule

java.lang.Object
  extended by com.caucho.quercus.module.AbstractQuercusModule
      extended by com.caucho.quercus.lib.QuercusModule
All Implemented Interfaces:
QuercusModule

public class QuercusModule
extends AbstractQuercusModule

Quercus functions to get information about the Quercus environment.


Field Summary
 
Fields inherited from class com.caucho.quercus.module.AbstractQuercusModule
PHP_INI_ALL, PHP_INI_PERDIR, PHP_INI_SYSTEM, PHP_INI_USER
 
Constructor Summary
QuercusModule()
           
 
Method Summary
static Env get_env(Env env)
          Returns the Env object.
static QuercusContext get_quercus(Env env)
          Returns the Quercus object.
static HttpServletRequest get_request(Env env)
          Deprecated. 
static HttpServletResponse get_response(Env env)
          Deprecated. 
static ServletContext get_servlet_context(Env env)
          Returns the ServletContext.
static HttpServletRequest get_servlet_request(Env env)
          Returns the HttpServletRequest associated with this Env.
static HttpServletResponse get_servlet_response(Env env)
          Returns the HttpServletResponse associated with this Env.
static boolean has_database(Env env)
          Returns true if a JDBC database has been explicitly set.
static boolean has_request(Env env)
          Returns true if there is an HttpRequest associated with this Env.
static boolean is_compile(Env env)
          Returns true if pages will be compiled.
static boolean is_pro(Env env)
          Returns true if this is the Professional version.
static boolean is_resin(Env env)
          Returns true if Quercus is running under Resin.
static void q_import(Env env, java.lang.String name)
          Special quercus-only import statements.
static java.lang.String version(Env env)
          Returns the version of Quercus.
 
Methods inherited from class com.caucho.quercus.module.AbstractQuercusModule
addConstant, addConstant, addConstant, getConstMap, getIniDefinitions, getLoadedExtensions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuercusModule

public QuercusModule()
Method Detail

get_quercus

public static QuercusContext get_quercus(Env env)
Returns the Quercus object.


get_env

public static Env get_env(Env env)
Returns the Env object.


version

public static java.lang.String version(Env env)
Returns the version of Quercus.


is_pro

public static boolean is_pro(Env env)
Returns true if this is the Professional version.


is_compile

public static boolean is_compile(Env env)
Returns true if pages will be compiled.


is_resin

public static boolean is_resin(Env env)
Returns true if Quercus is running under Resin.


has_database

public static boolean has_database(Env env)
Returns true if a JDBC database has been explicitly set.


has_request

public static boolean has_request(Env env)
Returns true if there is an HttpRequest associated with this Env.


get_request

@Deprecated
public static HttpServletRequest get_request(Env env)
Deprecated. 

Returns the HttpServletRequest associated with this Env.


get_servlet_request

public static HttpServletRequest get_servlet_request(Env env)
Returns the HttpServletRequest associated with this Env.


get_response

@Deprecated
public static HttpServletResponse get_response(Env env)
Deprecated. 

Returns the HttpServletResponse associated with this Env.


get_servlet_response

public static HttpServletResponse get_servlet_response(Env env)
Returns the HttpServletResponse associated with this Env.


get_servlet_context

public static ServletContext get_servlet_context(Env env)
Returns the ServletContext.


q_import

public static void q_import(Env env,
                            java.lang.String name)
Special quercus-only import statements.