Class \Prado\Web\UI\TPage
Class hierarchy
- \Prado\Web\UI\TPage
- \Prado\Web\UI\TTemplateControl
- \Prado\Web\UI\TCompositeControl implements INamingContainer
- \Prado\Web\UI\TControl implements IRenderable, IBindable
- \Prado\TApplicationComponent
- \Prado\TComponent
Since: 3.0
public
|
__construct() : mixed
Constructor.
Sets the page object to itself. Derived classes must call parent implementation. |
public
|
applyControlSkin(TControl $control) : mixed
Applies a skin in the current theme to a control.
This method should only be used by framework developers. |
public
|
applyControlStyleSheet(TControl $control) : mixed
Applies a stylesheet skin in the current theme to a control.
This method should only be used by framework developers. |
public
|
|
public
|
|
public
|
getAutoGlobalListen() : bool
TPage does autoGlobalListen and unlisten. Developers
may put fx events in the page that need to be picked up.
|
public
|
|
public
|
getCallbackClient() : TCallbackClientScript
Gets the callback client script handler that allows javascript functions
to be executed during the callback response.
|
public
|
|
public
|
|
public
|
|
public
|
getClientState() : string
Returns the state to be stored on the client side.
This method should only be used by framework and control developers. |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
getIsValid() : bool
Returns whether user input is valid or not.
This method must be invoked after validate is called. |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
getValidators([null|string $validationGroup = null ]) : TList
Returns a list of registered validators.
If validation group is specified, only the validators in that group will be returned. |
public
|
loadState() : mixed
This method is invoked right after the control has loaded its state.
You can override this method to initialize data from the control state. Parent implementation must be invoked. |
public
|
onInitComplete(mixed $param) : mixed
Raises OnInitComplete event.
This method is invoked right after \Prado\Web\UI\onInit stage and before \Prado\Web\UI\onLoad stage. You may override this method to provide additional initialization that should be done after \Prado\Web\UI\onInit. Remember to call the parent implementation to ensure OnInitComplete event is raised. |
public
|
onLoadComplete(mixed $param) : mixed
Raises OnLoadComplete event.
This method is invoked right after \Prado\Web\UI\onLoad stage. You may override this method to provide additional page loading logic that should be done after \Prado\Web\UI\onLoad. Remember to call the parent implementation to ensure OnLoadComplete event is raised. |
public
|
onPreInit(mixed $param) : mixed
Raises OnPreInit event.
This method is invoked right before \Prado\Web\UI\onInit stage. You may override this method to provide additional initialization that should be done before \Prado\Web\UI\onInit (e.g. setting \Prado\Web\UI\setTheme or \Prado\Web\UI\setStyleSheetTheme). Remember to call the parent implementation to ensure OnPreInit event is raised. |
public
|
onPreLoad(mixed $param) : mixed
Raises OnPreLoad event.
This method is invoked right before \Prado\Web\UI\onLoad stage. You may override this method to provide additional page loading logic that should be done before \Prado\Web\UI\onLoad. Remember to call the parent implementation to ensure OnPreLoad event is raised. |
public
|
onPreRenderComplete(mixed $param) : mixed
Raises OnPreRenderComplete event.
This method is invoked right after \Prado\Web\UI\onPreRender stage. You may override this method to provide additional preparation for page rendering that should be done after \Prado\Web\UI\onPreRender. Remember to call the parent implementation to ensure OnPreRenderComplete event is raised. |
public
|
onSaveStateComplete(mixed $param) : mixed
Raises OnSaveStateComplete event.
This method is invoked right after \Prado\Web\UI\onSaveState stage. You may override this method to provide additional logic after page state is saved. Remember to call the parent implementation to ensure OnSaveStateComplete event is raised. |
public
|
registerCachingAction(string $context, string $funcName, array<string|int, mixed> $funcParams) : mixed
Registers an action associated with the content being cached.
The registered action will be replayed if the content stored in the cache is served to end-users. |
public
|
registerRequiresPostData(TControl $control) : mixed
Registers a control for loading post data in the next postback.
This method needs to be invoked if the control to load post data may not have a post variable in some cases. For example, a checkbox, if not checked, will not have a post value. |
public
|
|
public
|
saveState() : mixed
This method is invoked when control state is to be saved.
You can override this method to do last step state saving. Parent implementation must be invoked. |
public
|
|
public
|
setCallbackEventTarget(TControl $control) : mixed
Registers a control to raise callback event in the current request.
|
public
|
setClientState(string $state) : mixed
Sets the state to be stored on the client side.
This method should only be used by framework and control developers. |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
setPostBackEventTarget(TControl $control) : mixed
Registers a control to raise postback event in the current request.
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
validate([string $validationGroup = null ]) : mixed
Performs input validation.
This method will invoke the registered validators to perform the actual validation. If validation group is specified, only the validators in that group will be invoked. |
protected
static
|
|
protected
|
|
protected
|
|
protected
|
processCallbackRequest(mixed $writer) : mixed
Sets Adapter to TActivePageAdapter and calls apter to process the
callback request.
|
protected
|
|
protected
|
|
protected
|
|
protected
|
raiseChangedEvents() : mixed
Raises OnPostDataChangedEvent for controls whose data have been changed due to the postback.
|
protected
|
|
protected
|
|
private
|
determinePostBackMode() : mixed
Determines whether the current page request is a postback.
Call getIsPostBack to get the result. |
private
|
getCssMediaType(string $url, object $theme) : string
Determines the media type of the CSS file.
The media type is determined according to the following file name pattern: xxx.media-type.extension For example, 'mystyle.print.css' means its media type is 'print'. |
public
mixed
|
FIELD_CALLBACK_PARAMETER
|
'PRADO_CALLBACK_PARAMETER'
|
public
mixed
|
FIELD_CALLBACK_TARGET
|
'PRADO_CALLBACK_TARGET'
|
public
mixed
|
FIELD_LASTFOCUS
|
'PRADO_LASTFOCUS'
|
public
mixed
|
FIELD_PAGESTATE
|
'PRADO_PAGESTATE'
|
public
mixed
|
FIELD_POSTBACK_PARAMETER
|
'PRADO_POSTBACK_PARAMETER'
|
public
mixed
|
FIELD_POSTBACK_TARGET
system post fields
|
'PRADO_POSTBACK_TARGET'
|