eZ Publish  [trunk]
eZWizardBase Class Reference

The class eZWizardBase does. More...

List of all members.

Public Member Functions

 attribute ($attr)
 attributes ()
 cleanup ()
 eZWizardBase ($tpl, &$module, $storageName=false)
 hasAttribute ($attr)
 hasMetaData ($key)
 hasVariable ($key)
 initialize ()
 metaData ($key)
 nextStep ()
 previousStep ()
 process ()
 run ()
 savePersistentData ()
 setMetaData ($key, $value)
 setVariable ($key, $value)
variable ($key)
 variableList ()

Public Attributes

 $ErrorList = array()
 $HTTP
 $MetaData = array()
 $MetaDataName = '_meta'
 $Module
 $StepArray = array()
 $StepList = array()
 $StepTemplateBase = 'design:wizard/step'
 $StorageName = 'eZWizard'
 $Tpl
 $VariableList = array()
 $VariableListName = '_data'
 $WarningList = array()
 $WizardURL = ''
const STAGE_POST = 1
const STAGE_PRE = 0

Private Member Functions

 postCheck ()
 preCheck ()
 skip ()
 stepTemplate ()

Detailed Description

The class eZWizardBase does.

Definition at line 17 of file ezwizardbase.php.


Member Function Documentation

Definition at line 77 of file ezwizardbase.php.

Definition at line 61 of file ezwizardbase.php.

Referenced by hasAttribute().

Cleanup variables used during wizard

Definition at line 316 of file ezwizardbase.php.

eZWizardBase::eZWizardBase ( tpl,
&$  module,
storageName = false 
)

Constructor

Parameters:
$tplTemplate class
$moduleModule
$storageNameStorage Name, optional.

Definition at line 29 of file ezwizardbase.php.

Definition at line 72 of file ezwizardbase.php.

Check if has metadata value

Definition at line 247 of file ezwizardbase.php.

Referenced by initialize().

Check if wizard variable exists

Parameters:
$keykey of the variable
Returns:
variable value

Definition at line 287 of file ezwizardbase.php.

Set needed variables.

Definition at line 48 of file ezwizardbase.php.

Referenced by eZWizardBase().

Get metadata

Definition at line 239 of file ezwizardbase.php.

Referenced by nextStep(), previousStep(), run(), and stepTemplate().

Increate Step counter

Definition at line 339 of file ezwizardbase.php.

Referenced by run().

eZWizardBase::postCheck ( ) [private]

Post check current step to check that it's safe to continue to next step. Return false if current step should be processed once again, and set warning message

Returns:
true if everything ok false if not

Definition at line 188 of file ezwizardbase.php.

Referenced by run().

eZWizardBase::preCheck ( ) [private]

Pre check current step to check that it's safe to execute current step. Return false if current step should not be processed, and set warning message

Returns:
true if everything ok false if not

Definition at line 174 of file ezwizardbase.php.

Referenced by run().

Go back to previous step

Definition at line 327 of file ezwizardbase.php.

Referenced by run().

Process the current step, and present the HTML.

Returns:
Module Result

Definition at line 218 of file ezwizardbase.php.

Referenced by run().

Will run the wizard, and continue from the current step. This method will run postCheck, redirect to next, etc. depending on the current state.

return Module Result or module redirect.

Definition at line 131 of file ezwizardbase.php.

Save persistent data

Definition at line 359 of file ezwizardbase.php.

Referenced by nextStep(), previousStep(), setMetaData(), and setVariable().

eZWizardBase::setMetaData ( key,
value 
)

Store meta data.

Parameters:
key
value

Definition at line 228 of file ezwizardbase.php.

Referenced by initialize(), nextStep(), and previousStep().

eZWizardBase::setVariable ( key,
value 
)

Store variable. Variable/value will be available in current and next wizard steps.

Parameters:
key
value

Definition at line 258 of file ezwizardbase.php.

eZWizardBase::skip ( ) [private]

Return true to skip current step. Current step will not be processed.

Returns:
true skip current step. false - perform current step.

Definition at line 207 of file ezwizardbase.php.

Referenced by run().

Get Step template name.

Returns:
current step template

Definition at line 308 of file ezwizardbase.php.

Referenced by attribute().

& eZWizardBase::variable ( key)

Get stored wizard values.

Parameters:
key
Returns:
value

Definition at line 271 of file ezwizardbase.php.

Return variable list.

Returns:
variable list

Definition at line 297 of file ezwizardbase.php.

Referenced by attribute().


Member Data Documentation

eZWizardBase::$ErrorList = array()

Definition at line 366 of file ezwizardbase.php.

eZWizardBase::$HTTP

Definition at line 372 of file ezwizardbase.php.

eZWizardBase::$MetaData = array()

Definition at line 379 of file ezwizardbase.php.

eZWizardBase::$MetaDataName = '_meta'

Definition at line 381 of file ezwizardbase.php.

eZWizardBase::$Module

Definition at line 374 of file ezwizardbase.php.

eZWizardBase::$StepArray = array()

Definition at line 388 of file ezwizardbase.php.

eZWizardBase::$StepList = array()

Definition at line 370 of file ezwizardbase.php.

eZWizardBase::$StepTemplateBase = 'design:wizard/step'

Definition at line 385 of file ezwizardbase.php.

eZWizardBase::$StorageName = 'eZWizard'

Definition at line 380 of file ezwizardbase.php.

eZWizardBase::$Tpl

Definition at line 373 of file ezwizardbase.php.

eZWizardBase::$VariableList = array()

Definition at line 378 of file ezwizardbase.php.

eZWizardBase::$VariableListName = '_data'

Definition at line 382 of file ezwizardbase.php.

eZWizardBase::$WarningList = array()

Definition at line 367 of file ezwizardbase.php.

eZWizardBase::$WizardURL = ''

Definition at line 375 of file ezwizardbase.php.

Definition at line 20 of file ezwizardbase.php.

Referenced by nextStep(), and run().

Definition at line 19 of file ezwizardbase.php.

Referenced by initialize(), nextStep(), previousStep(), and run().


The documentation for this class was generated from the following file: