• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/wizard_site.php
  • Класс: CWizard
  • Вызов: CWizard::__construct
public function __construct($wizardName)
{
	$this->name = $wizardName;

	if (!CWizardUtil::CheckName($this->name))
	{
		$this->SetError(GetMessage("MAIN_WIZARD_ERROR_WRONG_WIZ_NAME"));
		return;
	}

	$pathToWizard = CWizardUtil::MakeWizardPath($this->name);
	$this->path = CWizardUtil::GetRepositoryPath().$pathToWizard;

	if (!file_exists($_SERVER["DOCUMENT_ROOT"].$this->path) || !is_dir($_SERVER["DOCUMENT_ROOT"].$this->path))
	{
		$this->SetError(GetMessage("MAIN_WIZARD_ERROR_NOT_FOUND"));
		return;
	}

	$this->__GetDescription();
	$this->__CheckDepends();
	$this->__GetInstallationScript();
}