PHP Class Prado\IO\TTextWriter

TTextWriter implements a memory-based text writer. Content written by TTextWriter are stored in memory and can be obtained by calling {@link flush()}.
Since: 3.0
Author: Qiang Xue ([email protected])
Inheritance: extends Prado\TComponent, implements Prado\IO\ITextWriter
Show file Open project: pradosoft/prado Class Usage Examples

Public Methods

Method Description
flush ( ) : string Flushes the content that has been written.
write ( $str ) Writes a string.
writeLine ( $str = '' ) Writers a string and terminates it with a newline.

Method Details

flush() public method

Flushes the content that has been written.
public flush ( ) : string
return string the content being flushed

write() public method

Writes a string.
public write ( $str )

writeLine() public method

Writers a string and terminates it with a newline.
See also: write
public writeLine ( $str = '' )