public class OutputModule extends AbstractQuercusModule implements ModuleStartupListener
Modifier and Type | Field and Description |
---|---|
static int |
PHP_OUTPUT_HANDLER_CONT |
static int |
PHP_OUTPUT_HANDLER_END |
static int |
PHP_OUTPUT_HANDLER_START |
PHP_INI_ALL, PHP_INI_PERDIR, PHP_INI_SYSTEM, PHP_INI_USER
Constructor and Description |
---|
OutputModule() |
Modifier and Type | Method and Description |
---|---|
Value |
flush(Env env)
Flushes the original output buffer.
|
IniDefinitions |
getIniDefinitions()
Returns the default php.ini values.
|
static Value |
ob_clean(Env env)
Clears the output buffer.
|
static boolean |
ob_end_clean(Env env)
Pops the output buffer, discarding the contents.
|
static boolean |
ob_end_flush(Env env)
Pops the output buffer.
|
static Value |
ob_flush(Env env)
Flushes this output buffer into the next one on the stack or
to the default "output buffer" if no next output buffer exists.
|
static Value |
ob_get_clean(Env env)
Returns the contents of the output buffer, emptying it afterwards.
|
static Value |
ob_get_contents(Env env)
Returns the contents of the current output buffer.
|
static Value |
ob_get_flush(Env env)
Pops the output buffer and returns the contents.
|
static Value |
ob_get_length(Env env)
Pushes the output buffer
|
static Value |
ob_get_level(Env env)
Gets the nesting level of the current output buffer
|
static Value |
ob_get_status(Env env,
boolean full_status)
Gets the status of the current output buffer(s)
|
static Value |
ob_gzhandler(Env env,
StringValue buffer,
int state)
Output buffering compatible callback that automatically compresses
the output.
|
static Value |
ob_implicit_flush(Env env,
boolean flag)
Makes the original "output buffer" flush on every write.
|
static Value |
ob_list_handlers(Env env)
Returns a list of all the output handlers in use.
|
static boolean |
ob_start(Env env,
Callable callback,
int chunkSize,
boolean erase)
Pushes the output buffer
|
static boolean |
output_add_rewrite_var(Env env,
java.lang.String name,
java.lang.String value)
Adds a variable to the list for rewritten URLs.
|
static boolean |
output_reset_rewrite_vars(Env env)
Clears the list of variables for rewritten URLs.
|
static UrlRewriterCallback |
pushUrlRewriter(Env env)
Pushes a new UrlRewriter callback onto the output buffer stack
if one does not already exist.
|
void |
startup(Env env) |
addConstant, addConstant, addConstant, getConstMap, getLoadedExtensions
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConstMap, getLoadedExtensions
public static final int PHP_OUTPUT_HANDLER_START
public static final int PHP_OUTPUT_HANDLER_CONT
public static final int PHP_OUTPUT_HANDLER_END
public IniDefinitions getIniDefinitions()
getIniDefinitions
in interface QuercusModule
getIniDefinitions
in class AbstractQuercusModule
public void startup(Env env)
startup
in interface ModuleStartupListener
public static boolean ob_end_clean(Env env)
public static boolean ob_end_flush(Env env)
public static Value ob_get_clean(Env env)
public static Value ob_get_contents(Env env)
public static Value ob_get_flush(Env env)
public static Value ob_flush(Env env)
public static Value ob_get_level(Env env)
public static Value ob_list_handlers(Env env)
public static Value ob_get_status(Env env, boolean full_status)
public static Value ob_implicit_flush(Env env, boolean flag)
public static boolean ob_start(Env env, Callable callback, int chunkSize, boolean erase)
public static UrlRewriterCallback pushUrlRewriter(Env env)
public static boolean output_add_rewrite_var(Env env, java.lang.String name, java.lang.String value)
public static boolean output_reset_rewrite_vars(Env env)
public static Value ob_gzhandler(Env env, StringValue buffer, int state)