Class \Prado\IO\TOutputWriter
TOutputWriter class.
TOutputWriter extends TTextWriter to write the buffer to "Output" when flushed. In a CLI execution, STDOUT is "Output" but this is not true for processing web pages. For web pages, "Output" goes to the browser and 'php://stdout' goes to the web server's output (either cli or file); while STDOUT is not defined.
Once this class is flushed, PHP's flush need to be called to ensure the "Output" is written. If Output Buffering (ob_*) is used, ob_flush (or equivalent) also must be called before PHP's flush and after this class flushes.
Class hierarchy
Author: Brad Anderson <belisoful@icloud.com>Since: 4.2.0
public
|
flush() : string
Flushes the content that has been written. This does not call PHP's ob_flush
or flush and those must be called to ensure the output is actually sent.
|
public
mixed
|
OUTPUT_TYPE
The type of stream for Output.
|
'Output'
|
public
mixed
|
OUTPUT_URI
The file path to open a data stream to Output.
|
'php://output'
|
\Prado\TComponent::GLOBAL_RAISE_EVENT_LISTENER |