Q_OutputBuffer Class
Allows use of output buffers that deal intelligently with exceptions. Constructor implicitly calls ob_start(). The getClean() method calls ob_end_flush() repeatedly to flush buffers which have been started but not flushed yet, after this one.
Constructor
Q_OutputBuffer
-
[$handler=null]
-
[$locale=null]
-
[$throw_on_failure=false]
Parameters:
-
[$handler=null]
String optionalThe output handler, such as 'ob_gzhandler'.
-
[$locale=null]
String optionalCan be used to change the locale for a while, e.g. "en_GB"
-
[$throw_on_failure=false]
Boolean optionalIf true, and throws an exception if failed to create output buffer with this handler. Otherwise, silently creates a "normal" output buffer.
Methods
endFlush
()
Calls ob_end_flush(). The endFlush() method calls ob_end_flush() repeatedly to flush buffers which have been started but not flushed yet, after this one.
flushHigherBuffers
()
getClean
()
String
Calls ob_get_clean(). The getClean() method calls ob_end_flush() repeatedly to flush buffers which have been started but not flushed yet, after this one.
Returns:
getLength
()
Calls ob_get_length(). The getLength() method calls ob_end_flush() repeatedly to flush buffers which have been started but not flushed yet, after this one.