Property | Type | Description | |
---|---|---|---|
$_controlsPostDataChanged | list of controls whose data have been changed due to the postback | ||
$_controlsRegisteredForPostData | list of controls that need to load post data in the next postback | ||
$_controlsRequiringPostData | list of controls that need to load post data in the current request | ||
$_formRendered | whether the form has been rendered | ||
$_inFormRender | whether the current rendering is within a form | ||
$_isLoadingPostData | true if loading post data. | ||
$_postData | data post back by user | ||
$_restPostData | postback data that is not handled during first invocation of LoadPostData. |
Method | Description | |
---|---|---|
__construct ( ) | Constructor. | |
applyControlSkin ( $control ) | Applies a skin in the current theme to a control. | |
applyControlStyleSheet ( $control ) | Applies a stylesheet skin in the current theme to a control. | |
beginFormRender ( $writer ) | ||
endFormRender ( $writer ) | ||
ensureRenderInForm ( $control ) | Ensures the control is rendered within a form. | |
flushWriter ( ) | Flushes output | |
getCachingStack ( ) : |
||
getCallbackClient ( ) : |
Gets the callback client script handler that allows javascript functions to be executed during the callback response. | |
getCallbackEventParameter ( ) : string | Callback parameter is decoded assuming JSON encoding. | |
getCallbackEventTarget ( ) : |
||
getClientScript ( ) : |
||
getClientState ( ) : string | Returns the state to be stored on the client side. | |
getClientSupportsJavaScript ( ) : boolean | ||
getEnableStateCompression ( ) : boolean | ||
getEnableStateEncryption ( ) : boolean | ||
getEnableStateValidation ( ) : boolean | ||
getForm ( ) : |
||
getHead ( ) : |
||
getInFormRender ( ) : boolean | ||
getIsCallback ( ) : boolean | ||
getIsLoadingPostData ( ) : boolean | ||
getIsPostBack ( ) : boolean | ||
getIsValid ( ) : boolean | Returns whether user input is valid or not. | |
getPagePath ( ) : string | ||
getPostBackEventParameter ( ) : string | ||
getPostBackEventTarget ( ) : |
||
getRequestClientState ( ) : string | ||
getStatePersister ( ) : Prado\Web\UI\IPageStatePersister | ||
getStatePersisterClass ( ) : string | ||
getStyleSheetTheme ( ) : |
||
getTheme ( ) : |
||
getTitle ( ) : string | ||
getValidators ( $validationGroup = null ) : Prado\Collections\TList | Returns a list of registered validators. | |
loadState ( ) | This method is invoked right after the control has loaded its state. | |
onInitComplete ( $param ) | Raises OnInitComplete event. | |
onLoadComplete ( $param ) | Raises OnLoadComplete event. | |
onPreInit ( $param ) | Raises OnPreInit event. | |
onPreLoad ( $param ) | Raises OnPreLoad event. | |
onPreRenderComplete ( $param ) | Raises OnPreRenderComplete event. | |
onSaveStateComplete ( $param ) | Raises OnSaveStateComplete event. | |
registerCachingAction ( $context, $funcName, $funcParams ) | Registers an action associated with the content being cached. | |
registerRequiresPostData ( $control ) | Registers a control for loading post data in the next postback. | |
run ( $writer ) | Runs through the page lifecycles. | |
saveState ( ) | This method is invoked when control state is to be saved. | |
setCallbackClient ( $client ) | Set a new callback client handler. | |
setCallbackEventParameter ( $value ) | ||
setCallbackEventTarget ( |
Registers a control to raise callback event in the current request. | |
setClientState ( $state ) | Sets the state to be stored on the client side. | |
setClientSupportsJavaScript ( $value ) | ||
setEnableStateCompression ( $value ) | ||
setEnableStateEncryption ( $value ) | ||
setEnableStateValidation ( $value ) | ||
setFocus ( $value ) | Sets input focus on a control after the page is rendered to users. | |
setForm ( |
Registers a TForm instance to the page. | |
setHead ( |
||
setPagePath ( $value ) | ||
setPostBackEventParameter ( $value ) | ||
setPostBackEventTarget ( |
Registers a control to raise postback event in the current request. | |
setStatePersisterClass ( $value ) | ||
setStyleSheetTheme ( $value ) | Sets the stylesheet theme to be used for the page. | |
setTheme ( $value ) | Sets the theme to be used for the page. | |
setTitle ( $value ) | Sets the page title. | |
validate ( $validationGroup = null ) | Performs input validation. |
Method | Description | |
---|---|---|
decodeUTF8 ( $data, $enc ) | ||
isSystemPostField ( $field ) : boolean | ||
loadPageState ( ) | Loads page state from persistent storage. | |
processCallbackRequest ( $writer ) | Sets Adapter to TActivePageAdapter and calls apter to process the callback request. | |
processNormalRequest ( $writer ) | ||
processPostBackRequest ( $writer ) | ||
processPostData ( $postData, $beforeLoad ) | Processes post data. | |
raiseChangedEvents ( ) | Raises OnPostDataChangedEvent for controls whose data have been changed due to the postback. | |
raisePostBackEvent ( ) | Raises PostBack event. | |
savePageState ( ) | Saves page state from persistent storage. |
Method | Description | |
---|---|---|
determinePostBackMode ( ) | Determines whether the current page request is a postback. | |
getCssMediaType ( $url ) : string | Determines the media type of the CSS file. |
public __construct ( ) |
public applyControlSkin ( $control ) |
public applyControlStyleSheet ( $control ) |
public ensureRenderInForm ( $control ) |
public getCachingStack ( ) : |
||
return | stack of {@link TOutputCache} objects |
public getCallbackClient ( ) : |
||
return | interface to client-side javascript code. |
public getCallbackEventParameter ( ) : string | ||
return | string | callback event parameter |
public getCallbackEventTarget ( ) : |
||
return | the control responsible for the current callback event, null if nonexistent |
public getClientScript ( ) : |
||
return | client script manager |
public getClientState ( ) : string | ||
return | string | the state to be stored on the client side |
public getClientSupportsJavaScript ( ) : boolean | ||
return | boolean | whether client supports javascript. Defaults to true. |
public getEnableStateCompression ( ) : boolean | ||
return | boolean | whether page state should be compressed. Defaults to true. |
public getEnableStateEncryption ( ) : boolean | ||
return | boolean | whether page state should be encrypted. Defaults to false. |
public getEnableStateValidation ( ) : boolean | ||
return | boolean | whether page state should be HMAC validated. Defaults to true. |
public getHead ( ) : |
||
return | page head, null if not available |
public getInFormRender ( ) : boolean | ||
return | boolean | Whether form rendering is in progress |
public getIsCallback ( ) : boolean | ||
return | boolean | whether this is a callback request |
public getIsLoadingPostData ( ) : boolean | ||
return | boolean | true if loading post data. |
public getIsPostBack ( ) : boolean | ||
return | boolean | whether the current page request is a postback |
public getIsValid ( ) : boolean | ||
return | boolean | whether the user input is valid or not. |
public getPagePath ( ) : string | ||
return | string | the requested page path for this page |
public getPostBackEventParameter ( ) : string | ||
return | string | postback event parameter |
public getPostBackEventTarget ( ) : |
||
return | the control responsible for the current postback event, null if nonexistent |
public getRequestClientState ( ) : string | ||
return | string | the state postback from client side |
public getStatePersister ( ) : Prado\Web\UI\IPageStatePersister | ||
return | Prado\Web\UI\IPageStatePersister | page state persister |
public getStatePersisterClass ( ) : string | ||
return | string | class name of the page state persister. Defaults to TPageStatePersister. |
public getStyleSheetTheme ( ) : |
||
return | the stylesheet theme used for the page. Defaults to null. |
public getTheme ( ) : |
||
return | the theme used for the page. Defaults to null. |
public getValidators ( $validationGroup = null ) : Prado\Collections\TList | ||
return | Prado\Collections\TList | registered validators in the requested group. If the group is null, all validators will be returned. |
protected isSystemPostField ( $field ) : boolean | ||
return | boolean | whether the specified field is a system field in postback data |
protected loadPageState ( ) |
public loadState ( ) |
public onInitComplete ( $param ) |
public onLoadComplete ( $param ) |
public onPreInit ( $param ) |
public onPreLoad ( $param ) |
public onPreRenderComplete ( $param ) |
public onSaveStateComplete ( $param ) |
protected processCallbackRequest ( $writer ) |
protected processPostData ( $postData, $beforeLoad ) |
protected raiseChangedEvents ( ) |
public registerCachingAction ( $context, $funcName, $funcParams ) |
public registerRequiresPostData ( $control ) |
protected savePageState ( ) |
public saveState ( ) |
public setCallbackClient ( $client ) |
public setCallbackEventTarget ( |
||
$control |
public setClientState ( $state ) |
public setFocus ( $value ) |
public setForm ( |
||
$form |
public setPostBackEventTarget ( |
||
$control |
public setStyleSheetTheme ( $value ) |
public setTitle ( $value ) |
public validate ( $validationGroup = null ) |
protected $_controlsPostDataChanged |
protected $_controlsRegisteredForPostData |
protected $_controlsRequiringPostData |
protected $_inFormRender |