constructor __construct [line 167]
Constructor, initiates the root to itself.
Use pradoGetApplication()->loadPage() to create a page instead of using the new operator.
Overridden in child classes as:
- TCallbackPage::__construct()
- Initialize the callback service.
Overrides
TControl::__construct() (Constructor.)
method attachContent [line 412]
Attaches a content control to a content placeholder.
The attachment is based on ID matching.
Parameters:
method determinePostBackMode [line 178]
void determinePostBackMode(
)
|
|
Determines whether the current request is a postback.
This method should only be used by framework developers.
method execute [line 935]
Executes page lifecycles.
Starting with TModule.onLoad
If the page is requested for the first time, it consists of the following lifecycles,
- OnInit event
- OnLoad event
- OnPreRender event
- save viewstate
- render page
- OnUnload event
If the page is requested in response to a form submission (called postback), the life cycles include
- OnInit event
- load viewstate
- load post data
- OnLoad event
- load post data (for newly created components during Load event)
- OnPostDataChanged event
- Input validation if the postback event handler is enabled with CausesValidation property
- PostBack event
- OnPreRender event
- save viewstate
- render page
- OnUnload event
The execution is ended with TMOdule.onUnload
Overridden in child classes as:
- TCallbackPage::execute()
- Executes page lifecycles for a callback request
method getForm [line 250]
TForm getForm(
[string
$id = ''])
|
|
Returns the currently attached form object.
Parameters:
method getHead [line 270]
Returns the current page's Head object.
method getMasterPage [line 855]
null|TPage getMasterPage(
)
|
|
method getMasterPageName [line 863]
string getMasterPageName(
)
|
|
method getModule [line 837]
Returns the module object.
This method overrides the TComponent implementation.
Overrides
TComponent::getModule() (Returns the module object that contains the component or the page containing the component.)
method getPageName [line 891]
method getPostBackClientEvent [line 553]
void getPostBackClientEvent(
TComponent
$target, string
$param)
|
|
Returns a javascript that can be used to trigger client-side postback event.
You have to add your own javascript surrounding elements if necessary.
Parameters:
method getPostBackParameter [line 528]
string getPostBackParameter(
)
|
|
method getPostBackTarget [line 498]
Tcontrol getPostBackTarget(
)
|
|
method getStage [line 901]
Returns the current life cycle the page is in.
This method should only be used by framework developers.
method getTheme [line 290]
method getUrl [line 882]
string getUrl(
[array|null
$getParameters = null])
|
|
Parameters:
method getValidators [line 432]
method handlePostBackEvent [line 992]
void handlePostBackEvent(
)
|
|
method isArrayDeclarationRegistered [line 675]
boolean isArrayDeclarationRegistered(
string
$name)
|
|
Indicates whether the named array has been registered before.
Parameters:
method isBeginScriptRegistered [line 689]
boolean isBeginScriptRegistered(
string
$key)
|
|
Indicates whether the named beginscript has been registered before.
Parameters:
method isEndScriptRegistered [line 717]
boolean isEndScriptRegistered(
string
$key)
|
|
Indicate whether the named endscript has been registered before.
Parameters:
method isHiddenFieldRegistered [line 620]
boolean isHiddenFieldRegistered(
string
$name)
|
|
Indicates whether the named hidden field has been registered before.
Parameters:
method isOnSubmitStatementRegistered [line 647]
boolean isOnSubmitStatementRegistered(
string
$name)
|
|
Indicates whether the named onsubmit statement has been registered before.
Parameters:
method isPostBack [line 197]
boolean|false isPostBack(
)
|
|
Indicates whether the current request is a postback.
The value is available since Init stage.
method isScriptFileRegistered [line 745]
boolean isScriptFileRegistered(
string
$key)
|
|
Indicates whether the named scriptfile has been registered before.
Parameters:
method isStyleFileRegistered [line 785]
boolean isStyleFileRegistered(
string
$key)
|
|
Indicates whether the named CSS style file has been registered before.
Parameters:
method isValid [line 207]
Indicates whether all validators have successfully validated the post data.
The value is available since PostBack stage.
method loadPageStateFromPersistenceMedium [line 344]
array loadPageStateFromPersistenceMedium(
)
|
|
Loads viewstate of the page and all its children from a persistence medium.
By default, a hidden field is used as persistence medium. You can override this function to provide your own viewstate maintenance method. For example, you can keep the viewstate in session data or in database. If you override, you have to override savePageStateToPersistenceMedium as well to match the load and save processes.
This method should only be used by framework developers.
method loadPostData [line 307]
Runs through every postdata loader to load postdata.
This method should only be used by framework developers.
method loadViewState [line 1100]
void loadViewState(
mixed
$viewState)
|
|
Overrides
TControl::loadViewState() (Loads viewstate into this component and its children.)
method onAuthorize [line 826]
boolean onAuthorize(
IUser
$user)
|
|
Checks if the user is authorized to access this page.
Default implement always returns true. Derived classes may override this method to do real authorization work.
Parameters:
method onInitRecursive [line 1065]
method onLoadRecursive [line 1074]
method onPreInit [line 981]
void onPreInit(
mixed
$param)
|
|
method onPreRenderRecursive [line 1083]
method onUnloadRecursive [line 1092]
method raisePostDataChangedEvents [line 323]
void raisePostDataChangedEvents(
)
|
|
Raises PostDataChanged event for each postdata loader whose data is changed.
This method should only be used by framework developers.
method registerArrayDeclaration [line 661]
void registerArrayDeclaration(
string
$name, string
$value)
|
|
Register an element of a javascript array to be created on client side.
The elements of multiple registration of the same array name will be merged together.
Parameters:
method registerBeginScript [line 703]
void registerBeginScript(
string
$key, string
$script)
|
|
Registers a javascript block to be rendered right after the openning form element.
Parameters:
method registerClientScript [line 1124]
void registerClientScript(
mixed
$scripts)
|
|
method registerContentPlaceHolder [line 402]
Registers a content placeholder with the page.
Parameters:
method registerEndScript [line 731]
void registerEndScript(
string
$key, string
$script)
|
|
Register a javascript block to be rendered right before the closing form element.
Parameters:
method registerHiddenField [line 606]
void registerHiddenField(
string
$name, string
$value)
|
|
Registers a hidden field to be submitted upon client postback event.
Parameters:
method registerOnSubmitStatement [line 633]
void registerOnSubmitStatement(
string
$key, string
$script)
|
|
Registers a javascript statement to be executed upon client postback event.
Parameters:
method registerPostBackCandidate [line 471]
void registerPostBackCandidate(
IPostBackEventHandler
$control)
|
|
Registers a postback event handler.
Parameters:
method registerPostDataLoader [line 452]
void registerPostDataLoader(
IPostBackDataHandler
$control)
|
|
Registers a postdata loader.
The control must implement IPostBackDataHandler interface.
Overridden in child classes as:
- TCallbackPage::registerPostDataLoader()
- Registers a postdata loader. This allows the callback request to collect the form inputs.
Parameters:
method registerScriptFile [line 764]
void registerScriptFile(
string
$key, string
$scriptFile)
|
|
Registers a javascript file to be loaded in client side
Parameters:
method registerStyleFile [line 804]
void registerStyleFile(
string
$key, string
$styleFile)
|
|
Registers a CSS style file to be imported with the page body
Parameters:
method registerValidator [line 393]
void registerValidator(
IValidator
$validator)
|
|
Registers a validator with the page.
The validator must implement IValidator interface
Parameters:
method registerViewState [line 591]
void registerViewState(
string
$value)
|
|
Registers the viewstate into each form so that regardless of which
form triggers the postback, viewstate is found for the whole page
Parameters:
method renderBody [line 1037]
Renders the body content.
This is overridden so that the THead control can be caught and have its rendering deferred. This is so that if any other controls on the page want to register scripts or styles, the rendering of the head will be delayed until later. Thanks to stever on the prado forums for the very elegant memory location reassignment method for building the content string whether or not there's a THead present or not.
Overrides
TControl::renderBody() (Renders the body content.)
method renderContent [line 1009]
method savePageStateToPersistenceMedium [line 371]
void savePageStateToPersistenceMedium(
array
$viewState)
|
|
Saves viewstate of the page and all its children to a persistence medium.
This method should only be used by framework developers.
Parameters:
method saveViewState [line 1112]
method setForm [line 217]
void setForm(
TForm
$form)
|
|
Attaches the form object to the page.
If the
Parameters:
method setHead [line 280]
void setHead(
THead
$head)
|
|
sets the current page's Head object.
Parameters:
method setMasterPageName [line 873]
void setMasterPageName(
string
$pageName)
|
|
Sets the master page name.
This method should only be invoked at the beginning of onPreInit() method.
Parameters:
method setModule [line 847]
Sets the module object.
This method should only be used by framework developers.
Parameters:
method setPostBackParameter [line 520]
void setPostBackParameter(
string
$value)
|
|
Sets postback parameter
Parameters:
method setPostBackTarget [line 490]
void setPostBackTarget(
string
$uniqueID)
|
|
Sets postback target by its unique ID
Parameters:
method setTheme [line 298]
void setTheme(
string
$theme)
|
|
Parameters:
method unregisterContentPlaceHolder [line 423]
Unregisters a content placeholder with the page.
Parameters:
method unregisterPostBackCandidate [line 480]
void unregisterPostBackCandidate(
TControl
$control)
|
|
Unregisters a postback handler from the page.
Parameters:
method unregisterPostDataLoader [line 461]
method unregisterValidator [line 441]
void unregisterValidator(
TControl
$control)
|
|
Unregisters a validator from the page.
Parameters:
method unsetForm [line 236]
void unsetForm(
TForm
$form)
|
|
Detaches the form object from the page.
Parameters:
method validate [line 538]
Invokes validate() method of every registered validator and update isValid accordingly.