Thursday 06 April 2006 6:05:11 am
Thanks for your reply, Kåre. Can you give a little example or some documentation on how to use it? It could be a powerful base for some custom modules. Am I correct in saying that each wizard step has to extend the eZWizardBase class and that I need to use the eZWizardBaseClassLoader in a custom module to load the current step from a given steparray? Some thoughts about a piece of code in eZWizardBaseClassLoader::createClass:
if ( isset( $stepArray['operation'] ) )
{
$operation = $stepArray['operation'];
return $returnClass->$operation();
eZDebug::writeNotice( 'Running : "' . $className . '->' . $operation . '()". Specified in StepArray',
'eZWizardBaseClassLoader::createClass()' );
}
The notice will never be written to the debug output. And why is the operation value not taken from $stepArray[$currentStep]['operation']? A steparray will currently look quite weird (at least to me):
$stepArray = array(
0 => array( 'file' => ..., 'class' => ... ),
1 => array( 'file' => ..., 'class' => ... ),
'operation' => ... ) The comments for the eZWizardBase::preCheck function are stating that you can return false so the step doesn't get processed, but in eZWizardBase::run it's return value isn't used. But probably I'm using it the wrong way, so any documentation is welcome. Thanks!
independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org
|