• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/wizard_site.php
  • Класс: CWizard
  • Вызов: CWizard::_SetNextStep
function _SetNextStep($obStep, $currentStep, $stepType = "select")
{
	if ($stepType == "select")
		$arWizardStep = Array(
			BX_WIZARD_WELCOME_ID => true,
			BX_WIZARD_LICENSE_ID => $this->licenseExists,
			BX_WIZARD_SELECT_SITE_ID => $this->siteExists,
			BX_WIZARD_SELECT_GROUP_ID => ($this->groupExists && $this->templateExists),
			BX_WIZARD_SELECT_TEMPLATE_ID => $this->templateExists,
			BX_WIZARD_SELECT_SERVICE_ID => $this->serviceExists,
			BX_WIZARD_SELECT_STRUCTURE_ID => $this->structureExists,
			BX_WIZARD_START_INSTALL_ID => true,
		);

	else
		$arWizardStep = Array(
			BX_WIZARD_START_INSTALL_ID => true,
			BX_WIZARD_INSTALL_SITE_ID => $this->siteSelected,
			BX_WIZARD_INSTALL_TEMPLATE_ID => $this->templateSelected,
			BX_WIZARD_INSTALL_SERVICE_ID => $this->serviceSelected,
			BX_WIZARD_INSTALL_STRUCTURE_ID => $this->structureSelected,
			BX_WIZARD_FINISH_ID => true,
		);

	$nextStepID = null;
	$foundCurrent = false;
	foreach ($arWizardStep as $stepID => $success)
	{
		if ($foundCurrent && $success)
		{
			$nextStepID = $stepID;
			break;
		}

		if ($currentStep == $stepID)
		{
			$foundCurrent = true;
			continue;
		}
	}
	$obStep->SetNextStep($nextStepID);
}