• Модуль: seo
  • Путь к файлу: ~/bitrix/modules/seo/lib/Sitemap/File/Runtime.php
  • Класс: BitrixSeoSitemapFileRuntime
  • Вызов: Runtime::finish
public function finish()
{
	foreach ($this->partList as $key => $partName)
	{
		$f = new File(Path::combine($this->getDirectoryName(), $partName));
		$f->rename(str_replace($this->getPrefix(), '', $f->getPath()));
		$this->partList[$key] = $f->getName();
	}
	
	if ($this->isCurrentPartNotEmpty())
	{
		if (!$this->footerClosed)
		{
			$this->addFooter();
		}
		$this->rename(str_replace($this->getPrefix(), '', $this->getPath()));
	}
}