Class: atkWizardPanel
Source Location: /wizard/class.atkwizardpanel.inc
Class atkWizardPanel
Property Summary
| array |
$m_listeners |
Array of Actionlisteners which listen to the atkNode |
| object reference |
$m_node |
Reference to the atkNode |
| object reference |
$m_wizard |
Reference to the parent wizard |
Method Summary
| void |
addListener() |
Add an atkActionListener to the atkWizardPanel. |
| object of |
getPanelNode() |
Return the atkNode object for this panel. If it didn't exist yet, this method will create it and add actionlistener or actionhandlers. The session will also be manipulated so that the controller knows which atknodetype to render. |
| bool |
isFinishPanel() |
Check to see if this wizardpanel is the last panel before the finish screen. |
| bool |
save() |
We are saving a newly added record. On success or failure ATK will redirect. |
| int |
showFinishButton() |
Return the setting which specifies if the button should be shown, not shown or should depend on the default behaviour. Default behaviour is that the last panel in the wizard will have a finish button. |
| string |
_getText() |
Return a translation from the language file with a fallback option. |
Properties
Array of ActionHandlers which are binded to the atkNode
The default atkNode action for this wizardpanel
Array of Actionlisteners which listen to the atkNode
Name representation of the atkNode
Explicity set the finish button on this panel
Reference to the parent wizard
Methods
atkWizardPanel atkWizardPanel(
&$wizard, string
$panelName, string
$nodeName, [string
$defaultAction = ""], [integer
$finishButton = FINISH_BUTTON_DEFAULT], atkWizard
$wizard
)
|
|
atkWizardPanel constructor
We don't construct the node here for performance reasons (if any?). We probably don't need the node in most pageloads because we only use one wizardpanel at a time.
Parameters:
|
atkWizard |
$wizard: |
The wizard |
|
string |
$panelName: |
The panelname |
|
string |
$nodeName: |
The nodename |
|
string |
$defaultAction: |
The default action |
|
integer |
$finishButton: |
The finish button to use |
|
|
&$wizard: |
|
void addActionHandler(
string
$handlerName, string
$handlerAction
)
|
|
Add an atkActionHandler to the atkWizardPanel.
Handlers are created and added to the atkNode when the node is created.
Parameters:
|
string |
$handlerName: |
Name of the handler to add |
|
string |
$handlerAction: |
The action |
API Tags:
Add an atkActionListener to the atkWizardPanel.
Listeners are added to the atkNode when the node is created.
Parameters:
Do some session manipulations
Return the panel name
API Tags:
object of getPanelNode(
)
|
|
Return the atkNode object for this panel. If it didn't exist yet, this method will create it and add actionlistener or actionhandlers. The session will also be manipulated so that the controller knows which atknodetype to render.
API Tags:
| Return: | type atknode |
| Access: | public |
Check to see if this wizardpanel is the last panel before the finish screen.
void loadRenderBoxVars(
string
$action
)
|
|
Add smarty vars to actionhandler
Parameters:
We are saving a newly added record. On success or failure ATK will redirect.
On failure the session stack of the previous level is loaded to show the same wizardpanel again (now with error message). On succes we need to set some redirect vars to make sure we go to the next wizardpanel.
API Tags:
| Return: | on successfully executing this function |
Return the setting which specifies if the button should be shown, not shown or should depend on the default behaviour. Default behaviour is that the last panel in the wizard will have a finish button.
API Tags:
| Return: | FINISH_BUTTON_DEFAULT FINISH_BUTTON_SHOW FINISH_BUTTON_DONT_SHOW |
string _getText(
string
$key, string
$fallbackKey
)
|
|
Return a translation from the language file with a fallback option.
Parameters:
|
string |
$key: |
|
|
string |
$fallbackKey: |
|