Class TCallbackResponseWriter
TCallbackResponseWriter class.
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 Boundary property sets boundary identifier in the HTML comment that forms the boundary. By default, the boundary identifier is generated using microtime.
Constructor Summary |
public |
Constructor. Generates unique boundary ID using microtime.
|
Method Summary |
string
|
Returns the text content wrapped within a HTML comment with boundary identifier as its comment content.
|
string
|
|
void
|
|
Methods Inherited From TComponent |
TComponent::addParsedObject(), TComponent::attachEventHandler(), TComponent::canGetProperty(), TComponent::canSetProperty(), TComponent::createdOnTemplate(), TComponent::detachEventHandler(), TComponent::evaluateExpression(), TComponent::evaluateStatements(), TComponent::getEventHandlers(), TComponent::getSubProperty(), TComponent::hasEvent(), TComponent::hasEventHandler(), TComponent::hasProperty(), TComponent::raiseEvent(), TComponent::setSubProperty(), TComponent::__get(), TComponent::__set()
|
Constructor Details |
__construct
Constructor. Generates unique boundary ID using microtime.
|
Method Details |
flush
Returns the text content wrapped within a HTML comment with boundary identifier as its comment content.
Output |
string
| text content chunck. |
Exception |
|
getBoundary
public string getBoundary |
() |
Output |
string
| boundary identifier. |
Exception |
|
setBoundary
public void setBoundary |
(string $value ) |
Input |
string | $value | boundary identifier. |
Output |
Exception |
|
|