ZedSeriesWizard __construct(
array
$steps, [array
$validationCallback = array()], mixed
$wzConfig
)
|
|
Parameters:
|
array |
$steps: |
a configuration array like: array( $widget, $widget array() |
|
array |
$validationCallback: |
a callback array like: 'fieldname' => array(new class(), 'methodname') |
|
mixed |
$wzConfig: |
name of ini file or instanceof ZedSeriesIniConfigWizard |
API Tags:
void addCallback(
string
$fieldname, mixed
$callback
)
|
|
Parameters:
|
string |
$fieldname: |
related fieldname |
|
mixed |
$callback: |
callback to invoke for $fieldname validation |
API Tags:
void addWidget(
$step,
$widget
)
|
|
add a widget after initial setup
useful if you want to show some widgets depending on the previous step
Parameters:
API Tags:
void getWidgets(
$arrStep, [
$disable = false]
)
|
|
return a widget array for the current step
Parameters:
API Tags:
run the wizard :O
API Tags:
validate current step
if the widget is (instanceof) uploadable the validationCallback will not be called
API Tags:
TODO:
add __empty and __isset function test with PHP BUG #43936
Parameters:
API Tags: