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 THttpResponseAdapter

THttpResponseAdapter class.

THttpResponseAdapter allows the base http response class to change behavior without change the class hierarchy.

TComponent
Extended by TApplicationComponent
Extended by THttpResponseAdapter

Direct known subclasses

TCallbackResponseAdapter
Package: System\Web
Copyright: Copyright © 2005-2014 PradoSoft
License: http://www.pradosoft.com/license/
Author: Wei Zhuo <weizhuo[at]gmail[dot]com>
Version: $Id$
Since: 3.0
Located at Web/THttpResponseAdapter.php
Methods summary
public
# __construct( THttpResponse $response )

Constructor. Attach a response to be adapted.

Constructor. Attach a response to be adapted.

Parameters

$response
THttpResponse
the response object the adapter is to attach to.

Overrides

TComponent::__construct()
public THttpResponse
# getResponse( )

Returns

THttpResponse
the response object adapted.

Overrides

TApplicationComponent::getResponse()
public
# flushContent( )

This method is invoked when the response flushes the content and headers. Default implementation calls the attached response flushContent method.

This method is invoked when the response flushes the content and headers. Default implementation calls the attached response flushContent method.

public
# httpRedirect( string $url )

This method is invoked when the response is to redirect to another page.

This method is invoked when the response is to redirect to another page.

Parameters

$url
string
new url to redirect to.
public
# createNewHtmlWriter( string $type, ITextWriter $writer )

This method is invoked when a new HtmlWriter needs to be created. Default implementation calls the attached response createNewHtmlWriter method.

This method is invoked when a new HtmlWriter needs to be created. Default implementation calls the attached response createNewHtmlWriter method.

Parameters

$type
string
type of the HTML writer to be created.
$writer
ITextWriter
the writer responsible for holding the content.
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