PHP 클래스 Prado\Web\UI\TPage

부터: 3.0
저자: Qiang Xue ([email protected])
상속: extends TTemplateControl
파일 보기 프로젝트 열기: pradosoft/prado 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_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.

공개 메소드들

메소드 설명
__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 ( ) : TStack
getCallbackClient ( ) : TCallbackClientScript 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 ( ) : TControl
getClientScript ( ) : TClientScriptManager
getClientState ( ) : string Returns the state to be stored on the client side.
getClientSupportsJavaScript ( ) : boolean
getEnableStateCompression ( ) : boolean
getEnableStateEncryption ( ) : boolean
getEnableStateValidation ( ) : boolean
getForm ( ) : TForm
getHead ( ) : THead
getInFormRender ( ) : boolean
getIsCallback ( ) : boolean
getIsLoadingPostData ( ) : boolean
getIsPostBack ( ) : boolean
getIsValid ( ) : boolean Returns whether user input is valid or not.
getPagePath ( ) : string
getPostBackEventParameter ( ) : string
getPostBackEventTarget ( ) : TControl
getRequestClientState ( ) : string
getStatePersister ( ) : Prado\Web\UI\IPageStatePersister
getStatePersisterClass ( ) : string
getStyleSheetTheme ( ) : TTheme
getTheme ( ) : TTheme
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 ( TControl $control ) 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 ( TForm $form ) Registers a TForm instance to the page.
setHead ( THead $value )
setPagePath ( $value )
setPostBackEventParameter ( $value )
setPostBackEventTarget ( TControl $control ) 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.

보호된 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
determinePostBackMode ( ) Determines whether the current page request is a postback.
getCssMediaType ( $url ) : string Determines the media type of the CSS file.

메소드 상세

__construct() 공개 메소드

Sets the page object to itself. Derived classes must call parent implementation.
public __construct ( )

applyControlSkin() 공개 메소드

This method should only be used by framework developers.
public applyControlSkin ( $control )

applyControlStyleSheet() 공개 메소드

This method should only be used by framework developers.
public applyControlStyleSheet ( $control )

beginFormRender() 공개 메소드

public beginFormRender ( $writer )

decodeUTF8() 보호된 정적인 메소드

protected static decodeUTF8 ( $data, $enc )

endFormRender() 공개 메소드

public endFormRender ( $writer )

ensureRenderInForm() 공개 메소드

Ensures the control is rendered within a form.
public ensureRenderInForm ( $control )

flushWriter() 공개 메소드

Flushes output
public flushWriter ( )

getCachingStack() 공개 메소드

public getCachingStack ( ) : TStack
리턴 Prado\Collections\TStack stack of {@link TOutputCache} objects

getCallbackClient() 공개 메소드

Gets the callback client script handler that allows javascript functions to be executed during the callback response.
public getCallbackClient ( ) : TCallbackClientScript
리턴 Prado\Web\UI\ActiveControls\TCallbackClientScript interface to client-side javascript code.

getCallbackEventParameter() 공개 메소드

Callback parameter is decoded assuming JSON encoding.
public getCallbackEventParameter ( ) : string
리턴 string callback event parameter

getCallbackEventTarget() 공개 메소드

public getCallbackEventTarget ( ) : TControl
리턴 TControl the control responsible for the current callback event, null if nonexistent

getClientScript() 공개 메소드

public getClientScript ( ) : TClientScriptManager
리턴 TClientScriptManager client script manager

getClientState() 공개 메소드

This method should only be used by framework and control developers.
public getClientState ( ) : string
리턴 string the state to be stored on the client side

getClientSupportsJavaScript() 공개 메소드

public getClientSupportsJavaScript ( ) : boolean
리턴 boolean whether client supports javascript. Defaults to true.

getEnableStateCompression() 공개 메소드

부터: 3.1.6
public getEnableStateCompression ( ) : boolean
리턴 boolean whether page state should be compressed. Defaults to true.

getEnableStateEncryption() 공개 메소드

public getEnableStateEncryption ( ) : boolean
리턴 boolean whether page state should be encrypted. Defaults to false.

getEnableStateValidation() 공개 메소드

public getEnableStateValidation ( ) : boolean
리턴 boolean whether page state should be HMAC validated. Defaults to true.

getForm() 공개 메소드

public getForm ( ) : TForm
리턴 TForm the form on the page

getHead() 공개 메소드

public getHead ( ) : THead
리턴 Prado\Web\UI\WebControls\THead page head, null if not available

getInFormRender() 공개 메소드

public getInFormRender ( ) : boolean
리턴 boolean Whether form rendering is in progress

getIsCallback() 공개 메소드

public getIsCallback ( ) : boolean
리턴 boolean whether this is a callback request

getIsLoadingPostData() 공개 메소드

public getIsLoadingPostData ( ) : boolean
리턴 boolean true if loading post data.

getIsPostBack() 공개 메소드

public getIsPostBack ( ) : boolean
리턴 boolean whether the current page request is a postback

getIsValid() 공개 메소드

This method must be invoked after {@link validate} is called.
public getIsValid ( ) : boolean
리턴 boolean whether the user input is valid or not.

getPagePath() 공개 메소드

public getPagePath ( ) : string
리턴 string the requested page path for this page

getPostBackEventParameter() 공개 메소드

public getPostBackEventParameter ( ) : string
리턴 string postback event parameter

getPostBackEventTarget() 공개 메소드

public getPostBackEventTarget ( ) : TControl
리턴 TControl the control responsible for the current postback event, null if nonexistent

getRequestClientState() 공개 메소드

public getRequestClientState ( ) : string
리턴 string the state postback from client side

getStatePersister() 공개 메소드

public getStatePersister ( ) : Prado\Web\UI\IPageStatePersister
리턴 Prado\Web\UI\IPageStatePersister page state persister

getStatePersisterClass() 공개 메소드

public getStatePersisterClass ( ) : string
리턴 string class name of the page state persister. Defaults to TPageStatePersister.

getStyleSheetTheme() 공개 메소드

public getStyleSheetTheme ( ) : TTheme
리턴 TTheme the stylesheet theme used for the page. Defaults to null.

getTheme() 공개 메소드

public getTheme ( ) : TTheme
리턴 TTheme the theme used for the page. Defaults to null.

getTitle() 공개 메소드

public getTitle ( ) : string
리턴 string page title.

getValidators() 공개 메소드

If validation group is specified, only the validators in that group will be returned.
public getValidators ( $validationGroup = null ) : Prado\Collections\TList
리턴 Prado\Collections\TList registered validators in the requested group. If the group is null, all validators will be returned.

isSystemPostField() 보호된 메소드

protected isSystemPostField ( $field ) : boolean
리턴 boolean whether the specified field is a system field in postback data

loadPageState() 보호된 메소드

Loads page state from persistent storage.
protected loadPageState ( )

loadState() 공개 메소드

You can override this method to initialize data from the control state. Parent implementation must be invoked.
public loadState ( )

onInitComplete() 공개 메소드

This method is invoked right after {@link onInit OnInit} stage and before {@link onLoad OnLoad} stage. You may override this method to provide additional initialization that should be done after {@link onInit OnInit}. Remember to call the parent implementation to ensure OnInitComplete event is raised.
public onInitComplete ( $param )

onLoadComplete() 공개 메소드

This method is invoked right after {@link onLoad OnLoad} stage. You may override this method to provide additional page loading logic that should be done after {@link onLoad OnLoad}. Remember to call the parent implementation to ensure OnLoadComplete event is raised.
public onLoadComplete ( $param )

onPreInit() 공개 메소드

This method is invoked right before {@link onInit OnInit} stage. You may override this method to provide additional initialization that should be done before {@link onInit OnInit} (e.g. setting {@link setTheme Theme} or {@link setStyleSheetTheme StyleSheetTheme}). Remember to call the parent implementation to ensure OnPreInit event is raised.
public onPreInit ( $param )

onPreLoad() 공개 메소드

This method is invoked right before {@link onLoad OnLoad} stage. You may override this method to provide additional page loading logic that should be done before {@link onLoad OnLoad}. Remember to call the parent implementation to ensure OnPreLoad event is raised.
public onPreLoad ( $param )

onPreRenderComplete() 공개 메소드

This method is invoked right after {@link onPreRender OnPreRender} stage. You may override this method to provide additional preparation for page rendering that should be done after {@link onPreRender OnPreRender}. Remember to call the parent implementation to ensure OnPreRenderComplete event is raised.
public onPreRenderComplete ( $param )

onSaveStateComplete() 공개 메소드

This method is invoked right after {@link onSaveState 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 onSaveStateComplete ( $param )

processCallbackRequest() 보호된 메소드

Sets Adapter to TActivePageAdapter and calls apter to process the callback request.
protected processCallbackRequest ( $writer )

processNormalRequest() 보호된 메소드

protected processNormalRequest ( $writer )

processPostBackRequest() 보호된 메소드

protected processPostBackRequest ( $writer )

processPostData() 보호된 메소드

Processes post data.
protected processPostData ( $postData, $beforeLoad )

raiseChangedEvents() 보호된 메소드

Raises OnPostDataChangedEvent for controls whose data have been changed due to the postback.
protected raiseChangedEvents ( )

raisePostBackEvent() 보호된 메소드

Raises PostBack event.
protected raisePostBackEvent ( )

registerCachingAction() 공개 메소드

The registered action will be replayed if the content stored in the cache is served to end-users.
public registerCachingAction ( $context, $funcName, $funcParams )

registerRequiresPostData() 공개 메소드

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 registerRequiresPostData ( $control )

run() 공개 메소드

Runs through the page lifecycles.
public run ( $writer )

savePageState() 보호된 메소드

Saves page state from persistent storage.
protected savePageState ( )

saveState() 공개 메소드

You can override this method to do last step state saving. Parent implementation must be invoked.
public saveState ( )

setCallbackClient() 공개 메소드

Set a new callback client handler.
public setCallbackClient ( $client )

setCallbackEventParameter() 공개 메소드

public setCallbackEventParameter ( $value )

setCallbackEventTarget() 공개 메소드

Registers a control to raise callback event in the current request.
public setCallbackEventTarget ( TControl $control )
$control TControl

setClientState() 공개 메소드

This method should only be used by framework and control developers.
public setClientState ( $state )

setClientSupportsJavaScript() 공개 메소드

public setClientSupportsJavaScript ( $value )

setEnableStateCompression() 공개 메소드

부터: 3.1.6
public setEnableStateCompression ( $value )

setEnableStateEncryption() 공개 메소드

public setEnableStateEncryption ( $value )

setEnableStateValidation() 공개 메소드

public setEnableStateValidation ( $value )

setFocus() 공개 메소드

Sets input focus on a control after the page is rendered to users.
public setFocus ( $value )

setForm() 공개 메소드

Note, a page can contain at most one TForm instance.
public setForm ( TForm $form )
$form TForm

setHead() 공개 메소드

public setHead ( THead $value )
$value Prado\Web\UI\WebControls\THead

setPagePath() 공개 메소드

public setPagePath ( $value )

setPostBackEventParameter() 공개 메소드

public setPostBackEventParameter ( $value )

setPostBackEventTarget() 공개 메소드

Registers a control to raise postback event in the current request.
public setPostBackEventTarget ( TControl $control )
$control TControl

setStatePersisterClass() 공개 메소드

public setStatePersisterClass ( $value )

setStyleSheetTheme() 공개 메소드

Sets the stylesheet theme to be used for the page.
public setStyleSheetTheme ( $value )

setTheme() 공개 메소드

Sets the theme to be used for the page.
public setTheme ( $value )

setTitle() 공개 메소드

Note, a {@link THead} control needs to place on the page in order that this title be rendered.
public setTitle ( $value )

validate() 공개 메소드

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.
public validate ( $validationGroup = null )

프로퍼티 상세

$_controlsPostDataChanged 보호되어 있는 프로퍼티

list of controls whose data have been changed due to the postback
protected $_controlsPostDataChanged

$_controlsRegisteredForPostData 보호되어 있는 프로퍼티

list of controls that need to load post data in the next postback
protected $_controlsRegisteredForPostData

$_controlsRequiringPostData 보호되어 있는 프로퍼티

list of controls that need to load post data in the current request
protected $_controlsRequiringPostData

$_formRendered 보호되어 있는 프로퍼티

whether the form has been rendered
protected $_formRendered

$_inFormRender 보호되어 있는 프로퍼티

whether the current rendering is within a form
protected $_inFormRender

$_isLoadingPostData 보호되어 있는 프로퍼티

true if loading post data.
protected $_isLoadingPostData

$_postData 보호되어 있는 프로퍼티

data post back by user
protected $_postData

$_restPostData 보호되어 있는 프로퍼티

postback data that is not handled during first invocation of LoadPostData.
protected $_restPostData