Class \Prado\Web\UI\ActiveControls\TActivePageAdapter
TActivePageAdapter class.
Callback request handler.
Class hierarchy
- \Prado\Web\UI\ActiveControls\TActivePageAdapter
- \Prado\Web\UI\TControlAdapter
- \Prado\TApplicationComponent
- \Prado\TComponent
Author: Gabor Berczi <gabor.berczi@devworx.hu> (lazyload additions & progressive rendering)
Since: 3.1
public
|
__construct(TPage $control) : mixed
Constructor, trap errors and exception to let the callback response
handle them.
|
public
|
getCallbackClientHandler() : TCallbackClientScript
Gets the callback client script handler. It handlers the javascript functions
to be executed during the callback response.
|
public
|
|
public
|
|
public
|
|
public
|
registerControlToRender(TControl $control, THtmlWriter $writer) : mixed
Register a control for defered render() call.
|
public
|
|
public
|
|
public
|
setCallbackEventTarget(TControl $control) : mixed
Registers a control to raise callback event in the current request.
|
protected
|
|
protected
|
renderResponse(THtmlWriter $writer) : mixed
Renders the callback response by adding additional callback data and
javascript actions in the header and page state if required.
|
protected
|
trapCallbackErrorsExceptions() : mixed
Trap errors and exceptions to be handled by TCallbackErrorHandler.
|
private
|
appendContentPart(mixed $response, mixed $delimiter, mixed $data) : mixed
Appends data or javascript code to the body content surrounded with delimiters
|
private
|
public
mixed
|
CALLBACK_ACTION_HEADER
Callback response client-side action header name.
|
'X-PRADO-ACTIONS'
|
public
mixed
|
CALLBACK_DATA_HEADER
Callback response data header name.
|
'X-PRADO-DATA'
|
public
mixed
|
CALLBACK_DEBUG_HEADER
Callback error header name.
|
'X-PRADO-DEBUG'
|
public
mixed
|
CALLBACK_ERROR_HEADER
Callback error header name.
|
'X-PRADO-ERROR'
|
public
mixed
|
CALLBACK_HIDDENFIELDLIST_HEADER
Hidden field list header name.
|
'X-PRADO-HIDDENFIELDLIST'
|
public
mixed
|
CALLBACK_PAGESTATE_HEADER
Callback page state header name.
|
'X-PRADO-PAGESTATE'
|
public
mixed
|
CALLBACK_REDIRECT
Callback redirect url header name.
|
'X-PRADO-REDIRECT'
|
public
mixed
|
CALLBACK_SCRIPTLIST_HEADER
Script list header name.
|
'X-PRADO-SCRIPTLIST'
|
public
mixed
|
CALLBACK_STYLESHEET_HEADER
Stylesheet header name.
|
'X-PRADO-STYLESHEET'
|
public
mixed
|
CALLBACK_STYLESHEETLIST_HEADER
Stylesheet list header name.
|
'X-PRADO-STYLESHEETLIST'
|
\Prado\TApplicationComponent::FX_CACHE_FILE, \Prado\TComponent::GLOBAL_RAISE_EVENT_LISTENER |