PHP Class Prado\Web\UI\ActiveControls\TCallbackResponseWriter

TCallbackResponseWriter class enclosed a chunck of content within a html comment boundary. This allows multiple chuncks of content to return in the callback response and update multiple HTML elements. The {@link setBoundary Boundary} property sets boundary identifier in the HTML comment that forms the boundary. By default, the boundary identifier is generated using microtime.
Since: 3.1
Inheritance: extends Prado\IO\TTextWriter
Exibir arquivo Open project: pradosoft/prado

Public Methods

Method Description
__construct ( ) Constructor. Generates unique boundary ID using microtime.
flush ( ) : string Returns the text content wrapped within a HTML comment with boundary identifier as its comment content.
getBoundary ( ) : string
setBoundary ( $value )

Method Details

__construct() public method

Constructor. Generates unique boundary ID using microtime.
public __construct ( )

flush() public method

Returns the text content wrapped within a HTML comment with boundary identifier as its comment content.
public flush ( ) : string
return string text content chunck.

getBoundary() public method

public getBoundary ( ) : string
return string boundary identifier.

setBoundary() public method

public setBoundary ( $value )