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 TActivePageAdapter

TActivePageAdapter class.

Callback request handler.

TComponent
Extended by TApplicationComponent
Extended by TControlAdapter
Extended by TActivePageAdapter
Package: System\Web\UI\ActiveControls
Copyright: Copyright © 2005-2014 PradoSoft
License: http://www.pradosoft.com/license/
Author: Wei Zhuo <weizhuo[at]gamil[dot]com>
Author: Gabor Berczi <gabor.berczi@devworx.hu> (lazyload additions & progressive rendering)
Since: 3.1
Located at Web/UI/ActiveControls/TActivePageAdapter.php
Methods summary
public
# __construct( TPage $control )

Constructor, trap errors and exception to let the callback response handle them.

Constructor, trap errors and exception to let the callback response handle them.

Parameters

$control
TControl
the control to which the adapter is attached

Overrides

TControlAdapter::__construct()
public
# processCallbackEvent( THtmlWriter $writer )

Process the callback request.

Process the callback request.

Parameters

$writer
THtmlWriter
html content writer.
public
# registerControlToRender( TControl $control, THtmlWriter $writer )

Register a control for defered render() call.

Register a control for defered render() call.

Parameters

$control
TControl
control for defered rendering
$writer
THtmlWriter
the renderer
protected
# trapCallbackErrorsExceptions( )

Trap errors and exceptions to be handled by TCallbackErrorHandler.

Trap errors and exceptions to be handled by TCallbackErrorHandler.

public
# renderCallbackResponse( THtmlWriter $writer )

Render the callback response.

Render the callback response.

Parameters

$writer
THtmlWriter
html content writer.
protected
# redirect( string $url )

Redirect url on the client-side using javascript.

Redirect url on the client-side using javascript.

Parameters

$url
string
new url to load.
protected
# renderResponse( THtmlWriter $writer )

Renders the callback response by adding additional callback data and javascript actions in the header and page state if required.

Renders the callback response by adding additional callback data and javascript actions in the header and page state if required.

Parameters

$writer
THtmlWriter
html content writer.
public TControl
# getCallbackEventTarget( )

Returns

TControl
the control responsible for the current callback event, null if nonexistent
public
# setCallbackEventTarget( TControl $control )

Registers a control to raise callback event in the current request.

Registers a control to raise callback event in the current request.

Parameters

$control
TControl
control registered to raise callback event.
public string
# getCallbackEventParameter( )

Gets callback parameter.

Gets callback parameter.

Returns

string
postback event parameter
public
# setCallbackEventParameter( mixed $value )

Parameters

$value
mixed
postback event parameter
public TCallbackClientScript
# getCallbackClientHandler( )

Gets the callback client script handler. It handlers the javascript functions to be executed during the callback response.

Gets the callback client script handler. It handlers the javascript functions to be executed during the callback response.

Returns

TCallbackClientScript
callback client handler.
Methods inherited from TControlAdapter
createChildControls(), getControl(), getPage(), loadState(), onInit(), onLoad(), onPreRender(), onUnload(), render(), renderChildren(), saveState()
Methods inherited from TApplicationComponent
getApplication(), getRequest(), getResponse(), 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 summary
string CALLBACK_DATA_HEADER 'X-PRADO-DATA'
#

Callback response data header name.

Callback response data header name.

string CALLBACK_ACTION_HEADER 'X-PRADO-ACTIONS'
#

Callback response client-side action header name.

Callback response client-side action header name.

string CALLBACK_ERROR_HEADER 'X-PRADO-ERROR'
#

Callback error header name.

Callback error header name.

string CALLBACK_PAGESTATE_HEADER 'X-PRADO-PAGESTATE'
#

Callback page state header name.

Callback page state header name.

string CALLBACK_SCRIPTLIST_HEADER 'X-PRADO-SCRIPTLIST'
#

Script list header name.

Script list header name.

string CALLBACK_STYLESHEETLIST_HEADER 'X-PRADO-STYLESHEETLIST'
#

Stylesheet list header name.

Stylesheet list header name.

string CALLBACK_STYLESHEET_HEADER 'X-PRADO-STYLESHEET'
#

Stylesheet header name.

Stylesheet header name.

string CALLBACK_HIDDENFIELDLIST_HEADER 'X-PRADO-HIDDENFIELDLIST'
#

Hidden field list header name.

Hidden field list header name.

string CALLBACK_REDIRECT 'X-PRADO-REDIRECT'
#

Callback redirect url header name.

Callback redirect url header name.

Constants inherited from TComponent
GLOBAL_RAISE_EVENT_LISTENER
Properties inherited from TControlAdapter
$_control
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