• Модуль: lists
  • Путь к файлу: ~/bitrix/modules/lists/lib/importer.php
  • Класс: BitrixListsImporter
  • Вызов: Importer::installProcess
static function installProcess($path, $siteId = null)
{
	if (empty($path))
		throw new MainArgumentNullException("path");

	if (!MainLoader::includeModule("bizproc"))
		return;

	$path = MainLoader::getDocumentRoot() . $path;
	$iblockType = static::getIBlockType();

	$db = CIBlockType::GetList(array(), array("=ID" => $iblockType));
	$res = $db->Fetch();
	if (!$res)
		static::createIBlockType();

	$file = new MainIOFile($path);
	if($file->isExists() && $file->getExtension() == "prc")
	{
		static::import($iblockType, $file->getContents(), $siteId);
	}
}