Show:

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 optional

    The output handler, such as 'ob_gzhandler'.

  • [$locale=null] String optional

    Can be used to change the locale for a while, e.g. "en_GB"

  • [$throw_on_failure=false] Boolean optional

    If true, and throws an exception if failed to create output buffer with this handler. Otherwise, silently creates a "normal" output buffer.

Item Index

Properties

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:

String:

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.

Properties

$lastLocale

String static

$level

Integer

$locales

Array static