All Data Structures Functions Variables Pages
Public Member Functions | Protected Attributes
MessageStreamer Class Reference

Public Member Functions

 __construct ($template=null)
 
 setExtraRenderBytes ($extraRenderBytes)
 
 add ($message)
 
 addIgnoringTemplate ($message)
 
 setEmptyTemplate ()
 

Protected Attributes

 $template = "{message}"
 
 $extraRenderBytes = 1024
 

Detailed Description

Helper class for streaming output to the browser prior to the completion of a page request.

Definition at line 40 of file MessageStreamer.php.

Member Function Documentation

add (   $message)

Add a message to be streamed.

Parameters
string$message

Definition at line 74 of file MessageStreamer.php.

addIgnoringTemplate (   $message)

Given a message, output the message to the message stream ignoring the template. Used to output a . for example if you want a stream of dots to indicate progress.

Parameters
string$message

Definition at line 87 of file MessageStreamer.php.


The documentation for this class was generated from the following file:
Generated on Mon Mar 30 2020 07:11:11