PRADO Component Framework for PHP 5
  • Home
  • About
  • Testimonials
  • Demos
  • Download
  • Documentation
  • Forum
  • Development
  • Tutorials
  • Class Docs
  • API Manual
  • Wiki

Packages

  • None
  • System
    • Caching
    • Collections
    • Data
      • ActiveRecord
        • Relations
        • Scaffold
          • InputBuilder
      • Commom
        • Sqlite
      • Common
        • Mssql
        • Mysql
        • Oracle
        • Pgsql
        • Sqlite
      • DataGateway
      • SqlMap
        • Configuration
        • Statements
    • Exceptions
    • I18N
    • IO
    • Security
    • Util
    • Web
      • Javascripts
      • Services
      • UI
        • ActiveControls
        • WebControls
    • Xml
  • Wsat
    • pages
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo

Class TCallbackResponseAdapter

TCallbackResponseAdapter alters the THttpResponse's outputs.

A TCallbackResponseWriter is used instead of the TTextWrite when createHtmlWriter is called. Each call to createHtmlWriter will create a new TCallbackResponseWriter. When flushContent() is called each instance of TCallbackResponseWriter's content is flushed.

The callback response data can be set using the setResponseData ResponseData property.

TComponent
Extended by TApplicationComponent
Extended by THttpResponseAdapter
Extended by TCallbackResponseAdapter
Package: System\Web\UI\ActiveControls
Copyright: Copyright © 2005-2014 PradoSoft
License: http://www.pradosoft.com/license/
Author: Wei Zhuo <weizhuo[at]gmail[dot]com>
Since: 3.1
Located at Web/UI/ActiveControls/TCallbackResponseAdapter.php
Methods summary
public
# createNewHtmlWriter( string $type, THttpResponse $response )

Returns a new instance of THtmlWriter. An instance of TCallbackResponseWriter is created to hold the content.

Returns a new instance of THtmlWriter. An instance of TCallbackResponseWriter is created to hold the content.

Parameters

$type
string
writer class name.
$response
THttpResponse
http response handler.

Overrides

THttpResponseAdapter::createNewHtmlWriter()
public
# flushContent( )

Flushes the contents in the writers.

Flushes the contents in the writers.

Overrides

THttpResponseAdapter::flushContent()
public
# setResponseData( mixed $data )

Parameters

$data
mixed
callback response data.
public mixed
# getResponseData( )

Returns

mixed
callback response data.
public
# httpRedirect( string $url )

Delay the redirect until we process the rest of the page.

Delay the redirect until we process the rest of the page.

Parameters

$url
string
new url to redirect to.

Overrides

THttpResponseAdapter::httpRedirect()
public string
# getRedirectedUrl( )

Returns

string
new url for callback response to redirect to.
Methods inherited from THttpResponseAdapter
__construct(), getResponse()
Methods inherited from TApplicationComponent
getApplication(), getRequest(), getService(), getSession(), getUser(), publishAsset(), publishFilePath()
Methods inherited from TComponent
__call(), __destruct(), __get(), __isset(), __set(), __sleep(), __unset(), __wakeup(), addParsedObject(), asa(), attachBehavior(), attachBehaviors(), attachClassBehavior(), attachEventHandler(), canGetProperty(), canSetProperty(), clearBehaviors(), createdOnTemplate(), detachBehavior(), detachBehaviors(), detachClassBehavior(), detachEventHandler(), disableBehavior(), disableBehaviors(), enableBehavior(), enableBehaviors(), evaluateExpression(), evaluateStatements(), fxAttachClassBehavior(), fxDetachClassBehavior(), getAutoGlobalListen(), getBehaviorsEnabled(), getClassHierarchy(), getEventHandlers(), getListeningToGlobalEvents(), getSubProperty(), hasEvent(), hasEventHandler(), hasProperty(), isa(), listen(), raiseEvent(), setSubProperty(), unlisten()
Constants inherited from TComponent
GLOBAL_RAISE_EVENT_LISTENER
Terms of Service | Contact Us
PRADO v3.2.4 API Manual API documentation generated by ApiGen 2.8.0
Copyright © 2006-2014 by the PRADO Group.
Powered by PRADO