示例#1
0
文件: ezsetup.php 项目: legende91/ez
    while ($goBack) {
        $includeFile = $baseDir . 'steps/ezstep_' . $step['file'] . '.php';
        if (file_exists($includeFile)) {
            include_once $includeFile;
            $className = 'eZStep' . $step['class'];
            $stepObject = new $className($tpl, $http, $ini, $persistenceList);
            if ($stepObject->init() === true) {
                $step = $stepData->previousStep($step);
                continue;
            }
        }
        $goBack = false;
    }
} else {
    if ($http->hasPostVariable('eZSetup_refresh_button')) {
        $step = $stepData->step($http->postVariable('eZSetup_current_step'));
    } else {
        if ($http->hasPostVariable('eZSetup_next_button') || $http->hasPostVariable('eZSetup_current_step')) {
            // first, input from step must be processed/checked (processPostData())
            $currentStep = $stepData->step($http->postVariable('eZSetup_current_step'));
            $includeFile = $baseDir . 'steps/ezstep_' . $currentStep['file'] . '.php';
            $result = array();
            if (file_exists($includeFile)) {
                include_once $includeFile;
                $className = 'eZStep' . $currentStep['class'];
                $previousStepClass = new $className($tpl, $http, $ini, $persistenceList);
                $processPostDataResult = $previousStepClass->processPostData();
                $persistenceList = $previousStepClass->PersistenceList;
                if ($processPostDataResult === false) {
                    $step = $currentStep;
                } else {
示例#2
0
            $stepObject = new $className( $tpl, $http, $ini, $persistenceList );

            if ( $stepObject->init() === true )
            {
                $step = $stepData->previousStep( $step );
                continue;
            }
        }

        $goBack = false;
    }

}
else if ( $http->hasPostVariable( 'eZSetup_refresh_button' ) ) // refresh selected step
{
    $step = $stepData->step( $http->postVariable( 'eZSetup_current_step' ) );
}
else if ( $http->hasPostVariable( 'eZSetup_next_button' ) || $http->hasPostVariable( 'eZSetup_current_step' ) ) // next step selected,
{
    // first, input from step must be processed/checked (processPostData())
    $currentStep = $stepData->step( $http->postVariable( 'eZSetup_current_step' ) );

    $includeFile = $baseDir .'steps/ezstep_'.$currentStep['file'].'.php';
    $result = array();

    if ( file_exists( $includeFile ) )
    {
        include_once( $includeFile );
        $className = 'eZStep'.$currentStep['class'];
        $previousStepClass = new $className( $tpl, $http, $ini, $persistenceList );