• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/wizard_site.php
  • Класс: CWizard
  • Вызов: CWizard::__InitVariables
function __InitVariables()
{
	$this->licenseExists = ($this->__GetLicensePath() !== false);
	$this->siteExists = (!empty($this->arSites));
	$this->groupExists = (!empty($this->arTemplateGroups));
	$this->templateExists = (!empty($this->arTemplates));
	$this->serviceExists = (!empty($this->arServices));
	$this->structureExists = (!empty($this->arStructure));

	$wizard = $this->wizard;

	$this->siteID = $wizard->GetVar("__siteID");
	$this->templateID = $wizard->GetVar("__templateID");
	$this->groupID = $wizard->GetVar("__groupID");
	$this->serviceID = $wizard->GetVar("__serviceID");
	$this->structureID = $wizard->GetVar("__structureID");

	$this->siteSelected = ($this->siteExists && $this->siteID !== null && array_key_exists($this->siteID, $this->arSites));
	$this->templateSelected = ($this->templateExists && $this->templateID !== null && array_key_exists($this->templateID, $this->arTemplates));
	$this->serviceSelected = ($this->serviceExists && is_array($this->serviceID));
	$this->structureSelected = ($this->structureExists && $this->structureID <> '');
}