This class is an abstract class that provides a structure for building actions
that contain Wizards. Decendent actions are not required to contain Wizards, though if they do, they should implement the following methods:
- <?php
- ...
- m**
- * Build the content for this action
- *
- * @return boolean
- * @access public
- * @since 4/26/05
- *m
- function buildContent () {
- $centerPane =$this->getCenterPane();
- $assetId =$this->getAssetId();
- $cacheName = 'edit_asset_wizard_'.$assetId->getIdString();
- $this->runWizard ( $cacheName, $centerPane );
- }
- ...
- ?>
Located in /polyphony/main/library/AbstractActions/WizardAction.class.php (line 55)
Action | --WizardAction
| Class | Description |
|---|---|
| MainWindowAction | The MainWindowAction is an abstract class that provides a standard way of setting up and executing an action in the main window of the application. It provides a structure for accessing various parts of this main window, as well as delegating the implementation of some methods to decendent classes. |
Cancel from this Wizard. This will tear down the wizard and return us to our returnUrl as specified by getReturnUrl().
Clean the cacheName
Close the Wizard. This will tear down the Wizard.
Create a new Wizard for this action. Caching of this Wizard is handled by getWizard() and does not need to be implemented here.
Return the URL that this action should return to when completed.
Build and/or return our Wizard. Handle caching of it in the SESSION under the specified name.
Run this Action's wizard and add it to the specified container. Cache this Action's wizard with the specified cacheName.
This is the only method that an Action needs to call to run itself, see editAction::buildContent() for an example:
- <?php
- ...
- m**
- * Build the content for this action
- *
- * @return boolean
- * @access public
- * @since 4/26/05
- *m
- function buildContent () {
- $centerPane =$this->getCenterPane();
- $assetId =$this->getAssetId();
- $cacheName = 'edit_asset_wizard_'.$assetId->getIdString();
- $this->runWizard ( $cacheName, $centerPane );
- }
- ...
- ?>
Save our results. Tearing down and unsetting the Wizard is handled by in runWizard() and does not need to be implemented here.
Inherited From Action
Action::execute()
Action::getHeadingText()
Action::getUnauthorizedMessage()
Action::isAuthorizedToExecute()
Action::requestedAction()
Action::requestedModule()
Documentation generated on Wed, 19 Sep 2007 10:28:03 -0400 by phpDocumentor 1.3.0RC3