• Модуль: seo
  • Путь к файлу: ~/bitrix/modules/seo/lib/Sitemap/Generator.php
  • Класс: BitrixSeoSitemapGenerator
  • Вызов: Generator::run
public function run(): bool
{
	$result = false;

	if ($this->step === Step::STEPS[Step::STEP_INIT])
	{
		$result = $this->runInit();
	}

	elseif ($this->step < Step::STEPS[Step::STEP_FILES])
	{
		$result = $this->runFiles();
	}

	elseif ($this->step < Step::STEPS[Step::STEP_IBLOCK_INDEX])
	{
		$result = $this->runIblockIndex();
	}

	elseif ($this->step < Step::STEPS[Step::STEP_IBLOCK])
	{
		$result = $this->runIblock();
	}

	elseif ($this->step < Step::STEPS[Step::STEP_FORUM_INDEX])
	{
		$result = $this->runForumIndex();
	}

	elseif ($this->step < Step::STEPS[Step::STEP_FORUM])
	{
		$result = $this->runForum();
	}

	elseif ($this->step < Step::STEPS[Step::STEP_INDEX])
	{
		if ($this->runIndex())
		{
			$result = $this->finish();
		}
	}

	return $result;
}