• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/wizard.php
  • Класс: CWizardBase
  • Вызов: CWizardBase::AddStep
function AddStep($obStep, $stepID = null)
{
	if (!is_subclass_of($obStep, "CWizardStep"))
	{
		$this->__ShowError("Your class ".get_class($obStep)." is not a subclass of CWizardStep
"); return; } $obStep->_SetWizard($this); $obStep->InitStep(); $ownStepID = $obStep->GetStepID(); if ($ownStepID == null && $stepID == null) { $this->__ShowError("Your step (class ".get_class($obStep).") has no ID
"); return; } $stepID = ($stepID !== null ? $stepID : $ownStepID); $obStep->SetStepID($stepID); $this->wizardSteps[$stepID] = $obStep; if ($this->firstStepID === null) $this->SetFirstStep($stepID); }