
Provides a single, simplified interface for output buffering to prevent nested buffering issues and provide a more logical API
1.0.0b3 | Added a check to ensure the zlib extension is installd when doing gzipped buffering 5/20/10 |
---|---|
1.0.0b2 | Added the $gzip parameter to start() 5/19/10 |
1.0.0b | The initial implementation 3/16/08 |
Erases the output buffer
void erase( )
Returns the contents of output buffer
string get( )
The contents of the output buffer
Checks if buffering has been started
boolean isStarted( )
If buffering has been started
Replaces a value in the output buffer
void replace( string $find, string $replace )
string | $find | The string to find |
string | $replace | The string to replace |
Please note: this method is public, however it is primarily intended for internal use by Flourish and will normally not be useful in site/application code
Resets the configuration and buffer of the class
void reset( )
Starts output buffering
void start( boolean $gzip=FALSE )
boolean | $gzip | If the buffered output should be gzipped using ob_gzhandler() |
Starts capturing output, should be used with stopCapture() to grab output from code that does not offer an option of returning a value instead of outputting it
void startCapture( )
Stops output buffering, flushing everything to the browser
void stop( )
Stops capturing output, returning what was captured
string stopCapture( )
The captured output