add WebGUI::Wizard
This commit is contained in:
parent
945efb18be
commit
8504a34c65
6 changed files with 608 additions and 0 deletions
19
lib/WebGUI/Content/Wizard.pm
Normal file
19
lib/WebGUI/Content/Wizard.pm
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
package WebGUI::Content::Wizard;
|
||||
|
||||
sub process {
|
||||
my ( $session ) = @_;
|
||||
|
||||
if ( $session->form->get('op') eq 'wizard' && $session->form->get('wizard_class') ) {
|
||||
my $class = $session->form->get('wizard_class');
|
||||
WebGUI::Pluggable->load($class);
|
||||
if ( $class->isa( 'WebGUI::Wizard' ) ) {
|
||||
my $wizard = $class->new( $session );
|
||||
return $wizard->dispatch;
|
||||
}
|
||||
else {
|
||||
return "Sminternal Smerver Smerror";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
1;
|
||||
Loading…
Add table
Add a link
Reference in a new issue